Last active
May 24, 2018 20:39
-
-
Save robertg042/5ae2fc8b91e3835013895c6ce1fb991f to your computer and use it in GitHub Desktop.
Git 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
# checkout tracked remote branch | |
git remote show origin # lists remote config (including tracked branches) | |
git checkout -t <remote>/<tracked_branch> # creates new local branch named <tracked_branch> and sets upstream | |
# move unfinished work between workstations | |
git stash | |
git stash show -p > myPatchFile | |
## apply | |
git apply myPatchFile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment