3 ms·
My git related aliases: alias master='git checkout master' alias f='git fetch --all' alias s='git status --untracked-files=all' # go to the last branch
by bhaak 8y ago
My git related aliases:
alias master='git checkout master'
alias f='git fetch --all'
alias s='git status --untracked-files=all'
# go to the last branch I worked on, excluding master and the current branch
alias lb='git checkout `git for-each-ref --sort=-committerdate refs/heads/ | grep -v refs/heads/master$ | grep -v \`git rev-parse --abbrev-ref HEAD\`| head -n1 | cut -d \/ -f 3-`'