1[alias]
2 s = status
3 co = checkout
4 cm = commit
5 br = branch
6 aa = add -A
7 cb = !"git rev-parse --abbrev-ref HEAD"
8 defb = !"git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'"
9 fresh = !"git fetch && git pull origin $(git cb)"
10 com = !"git checkout $(git defb)"
11 puszc = !sh -c 'git push origin $(git cb)'
12 forsc = !sh -c 'git push origin $(git cb) --force-with-lease'
13 mrbs = !"git rebase origin/$(git defb)"
14 nie = rebase --abort
15 lecim = rebase --continue
16 tree = log --oneline --graph --color --all --decorate
17 cme = !"git cm -m \"$(date)\""
18 # ...and ~30 more, see repo
/ ~/.gitconfig
Git, but with fewer keystrokes.
A pile of aliases I've grown over the years. git cb for current branch, git fresh to pull the current branch, git com to jump to default, git lecim to continue a rebase (don't ask).
40+ aliases github.com/bmstefanski/git-aliases