Git branching and merging Flashcards
How do stash untracked files?
git stash save –inlclude-untracked
How do you add a new tag with a tagname and a description?
git tag -a -m “”
How do you checkout a tag?
git checkout
how do you clear all your stashes?
git stash clear
How do you download remote tags?
git fetch –tags
How do you get your (most recent) stashed changes back?
git stash apply
How do you list all your staches?
git stash list
How do you push new tags to remote?
git push –tags
How do you show all the tags?
git tag
How do you show the file diff of a specific stash?
git stash show –patch stash@{}
How do you stash your work in progress without stashing the staging area?
git stash save –keep-index
How do you temporarily ‘stash’ your work in progress to use later and add a stash message?
git stash save “”
How do you temporarily ‘stash’ your work in progress to use later?
git stash save
How do you create a branch?
git branch
How do you create- and check out that branch?
git checkout -b