done

workflow branching

Switch from a feature branch to the latest code in dev branch, and delete branches which are fully merged into dev branch. This alias is intended for use after pushing a code-complete feature branch to the server, when ready to start a new feature based on the latest dev branch code.

Usage: git done

CLI Command

git config --global alias.done "!git fetch && git checkout dev && git pull && git merged && git status"

.gitconfig Snippet

[alias]
  done = !git fetch && git checkout dev && git pull && git merged && git status