Difference between revisions of "Summary of Git Commands"
Jump to navigation
Jump to search
PeterHarding (talk | contribs) |
PeterHarding (talk | contribs) |
||
Line 24: | Line 24: | ||
=Stashes= | =Stashes= | ||
* git stash | * git stash save "wip for xxx" | ||
* git checkout | * git checkout yyy | ||
* ... | * ... | ||
* git commit -a -m " | * git commit -a -m "xyzzy" | ||
* git stash apply | * git stash apply | ||
* ... | * ... | ||
Queuing up stashes... | |||
* git stash list | |||
* git stash apply stash@{1} | |||
Revision as of 20:02, 1 April 2012
Working with Branches
See http://gitref.org/branching/
- git branch
- git branch -a
- git branch -r
Reviewing Remotes
See http://gitref.org/remotes/
- git remote show origin
- git ls-remote --heads origin
Grab one and use it
- git fetch xxx
- git checkout xxx
- got branch
Stashes
- git stash save "wip for xxx"
- git checkout yyy
- ...
- git commit -a -m "xyzzy"
- git stash apply
- ...
Queuing up stashes...
- git stash list
- git stash apply stash@{1}