Created
August 26, 2016 21:34
-
-
Save DavidObando/e11f0645af61652890e664cfc7b84d83 to your computer and use it in GitHub Desktop.
Git patch cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout master | |
git checkout -b mybranch | |
git add myfile | |
git commit -m "add myfile" | |
git format-patch master --stdout > addmyfile.patch | |
~~~ | |
git checkout master | |
git checkout -b myotherbranch | |
cat addmyfile.patch | git am --signoff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment