less than 1 minute read

Recently, I started a new gig at New Day. A new job, a new team, and a new laptop. I use git in the terminal a fair amount of time and noticed lost all my favourite git aliases I used to use in the terminal of my personal Macbook. So I wrote down a list of git aliases I find useful.

# list of handy git aliases I use.
git config --get-regexp alias
git config --global alias.co 'checkout'
git config --global alias.new 'checkout -b'
git config --global alias.ps 'push'
git config --global alias.pl 'pull'
git config --global alias.st 'status -sb'
git config --global alias.ll 'log --oneline'
git config --global alias.last 'log -1 HEAD --stat'
git config --global alias.cm 'commit -m'
git config --global alias.rv 'remote -v'
git config --global alias.gl 'config --global -l'
git config --global alias.se '!git rev-list --all | xargs git grep -F'

Tags:

Updated:

Comments