How to make gitk trackback "Write commit to file"?

I wrote the commit file from gitkby right-clicking the commit and selecting "Write commit to file".

How to apply commit from this file? I can do git apply, git addand git commitcombos, but there is no one-step commands to just take the output (with fixed links and metadata) and fix it as it is?

+5
source share
3 answers

I use Linux, but I think I understand what you are talking about. There gitkis an option "Write commit to file" when you right-click on a commit, which by default invokes a dialog that executes the command git diff-tree --stdin -p --pretty.

git apply diff, .. , . git am , . , , , .

, , git am, git format-patch git diff-tree. , git am git diff-tree, , .

+2

, , , https://github.com/sinsunsan/archiref_wiki/wiki/Git-howto

patch -p1 < patch-file

, 'Write commit to file', (-p1), /, b/, . commit:

git commit -am'Commit message here please.'
+2

git amcan do what you are looking for. It accepts patches created using git format-patchas input. I do not know what deflates git-gui.

0
source

All Articles