Skip to content

Instantly share code, notes, and snippets.

@RishikeshDarandale
Last active September 10, 2015 05:33
Show Gist options
  • Save RishikeshDarandale/fc2aa8ab1b2fd05fd489 to your computer and use it in GitHub Desktop.
Save RishikeshDarandale/fc2aa8ab1b2fd05fd489 to your computer and use it in GitHub Desktop.
Git configuration
[alias]
st=status
ci=commit
br=branch
co=checkout
df=diff
lg=log -p
ds=diff --staged
lol=log --graph --decorate --pretty=oneline --abbrev-commit
lola=log --graph --decorate --pretty=oneline --abbrev-commit --all
los=log --pretty=fuller --stat
pr=pull --rebase
latest=for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) [%(committername)]'
amend=commit --amend -C HEAD
undo=reset --soft HEAD^
ls=log --pretty=format:'%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%an/%cn]' --decorate --date=short
standup=log --since '1 day ago' --oneline
graph=log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
cp=cherry-pick
llog=log --date=local
whois=!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\" --author=\"$1\"'
[color]
ui=true
status=true
branch=true
[core]
pager=less -r
editor=vi
[rerere]
enabled=true
[user]
name=Rishikesh Darandale
[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment