Git stash
git stash helps you save uncommitted work onto a stack and cleans the directory by doing away with the uncommitted work.
Multiple stash commands form a stack of uncommitted work items.
git stash list shows you the stack of these items.
git stash apply stash@{number} can be used to apply the diffs from stash#2 on the current repository.
git stash drop stash@{number} deletes the specified stash.
git stash branch [temp-branch-name] creates a new branch before applying changes in the stash.
Useful when conflicts are expected.
Read full article from Git stash - PrismoSkills
No comments:
Post a Comment