-
Notifications
You must be signed in to change notification settings - Fork 1
/
bjh-git-aliases.sh
executable file
·22 lines (22 loc) · 946 Bytes
/
bjh-git-aliases.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
git config --global alias.pra 'pull -r --autostash'
git config --global alias.ss 'status -s'
git config --global alias.l1 'log -n1'
git config --global alias.l5 'log -n5'
git config --global alias.l3 'log -n 3'
git config --global alias.lo 'log -n 10 --oneline'
git config --global alias.co 'checkout'
git config --global alias.cp 'cherry-pick'
git config --global alias.cm 'commit -m'
git config --global alias.cam 'commit -am'
git config --global alias.sq '! squashbranch'
git config --global alias.rbm 'rebase origin/master'
git config --global alias.prl '! hub pr list'
git config --global alias.prm '! hub pull-request --browse -m'
git config --global alias.rau 'remote add upstream'
git config --global alias.fu 'fetch upstream'
git config --global alias.rbu 'rebase upstream/master'
git config --global alias.nb 'newb'
git config --global alias.gb 'getb'
git config --global alias.lsb 'listb'
git config --global alias.lb 'logb'