- Switches to a selected branch (
master
by default) - Pulls changes from the remote server
- Deletes all local branches which were deleted remotely
git go
Same command, but with another branch name to switch to:
git go feature/custom-branch-name
Opens an interactive rebase for all commits in the current branch that are not yet in master, automatically calculating the number of commits to rebase.
Useful for squashing or editing only your new commits.
git sq
Opens an interactive rebase of the current branch on top of master, using master as the fixed base.
All commits in the branch will be reordered relative to master.
git ru
Force push with --force-with-lease
flag.
git pf