Git Notes

· Christopher Hoelter's Blog


These are some miscellaneous git notes for features I don't use on a daily basis, but find useful every now and then.

1# Create a patch file from a diff
2git diff branch-1 branch-2 > temp.patch
3# edit temp.patch down to desired changes and save it
4# apply the patch
5git apply patch temp.patch
1git merge <target-branch> --no-commit
2git diff --staged
3git merge --abort
last updated:

Email me at blog@christopherhoelter.com.