git branch |
Lists / creates and deletes branches |
git switch |
Switches between branches |
git checkout |
Switches between branches |
git merge |
Merges branches |
git merge --abort |
Aborts a merge |
git merge --squash |
Squaches commits on branch into a single commit and merge |
git branch -d feature |
Deletes the feature branch |
git stash |
Stores made changes for later use |
git stash -m "stashing message" |
Stashes your changes and includes a message |
git stash list |
Shows all of your stored stashes |
git stash apply |
Applies your latest stash |
git stash apply stash@{n} |
Applies a specific stash |
git stash pop |
Applies your latest stash and removes it from stash list |
git stash pop stash@{n} |
Applies a specific stash and removes it from stash list |
git cherry-pick <commithash> |
Applies changes from <commithash> |
git rebase |
Different way of integrating changes from two branches |