Difference between revisions of "GIT"
(→Git Commands :) |
(→Git Commands :) |
||
Line 20: | Line 20: | ||
git format-patch -o /tmp/ HEAD^ | git format-patch -o /tmp/ HEAD^ | ||
+ | |||
+ | git format-patch master --stdout > fix_empty_poster.patch | ||
+ | |||
+ | <sub> | ||
+ | This will create a new file fix_empty_poster.patch with all changes from the current (fix_empty_poster) | ||
+ | against master. Normally, git would create a separate patch file for each commit, but that’s not what we want. All we need is a single patch file. | ||
+ | </sub> |
Revision as of 17:03, 16 October 2017
Git Commands :
git diff
git add
git commit -s -v
git format-patch LAST_LOCAL_COMMIT_ID
git show HEAD
git log --pretty=oneline --abbrev-commit
git show --pretty=oneline --abbrev-commit HEAD
git show HEAD | perl scripts/get_maintainer.pl --separator , --nokeywords --nogit --nogit-fallback --norolestats --nol
perl scripts/get_maintainer.pl --separator , --nokeywords --nogit --nogit-fallback --norolestats --nol -f drivers/staging/most/aim-sound/sound.c
git format-patch -o /tmp/ HEAD^
git format-patch master --stdout > fix_empty_poster.patch
This will create a new file fix_empty_poster.patch with all changes from the current (fix_empty_poster) against master. Normally, git would create a separate patch file for each commit, but that’s not what we want. All we need is a single patch file.