Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [alias]
- unstage = reset HEAD
- undo-commit = reset --soft HEAD^
- poh = push origin HEAD
- pulloh = pull origin HEAD
- set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
- lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
- # one-line log
- l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
- a = add
- ap = add -p
- c = commit --verbose
- ca = commit -a --verbose
- cm = commit -m
- cam = commit -a -m
- m = commit --amend --verbose
- d = diff
- ds = diff --stat
- dc = diff --cached
- s = status -s
- co = checkout
- cob = checkout -b
- # list branches sorted by last modified
- b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
- # list aliases
- la = "!git config -l | grep alias | cut -c 7-"
- ac = !git add . && git commit -am
Add Comment
Please, Sign In to add comment