Skip to content

Instantly share code, notes, and snippets.

@arya-oss
Created December 26, 2017 16:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save arya-oss/1427af75b51f77068cee57201a6c556e to your computer and use it in GitHub Desktop.
Save arya-oss/1427af75b51f77068cee57201a6c556e to your computer and use it in GitHub Desktop.
[user]
name = rajmani1995
email = rajmani1995@gmail.com
[credential]
helper = cache --timeout=3600
[alias]
aliases = config --get-regexp '^alias\\.'
br = branch
branch-name = rev-parse --abbrev-ref HEAD
ci = commit -m
cm = !git add -A && git commit -m
co = checkout
cob = checkout -b
cl = clone
cld = clone --depth=1
dsf = "!f() { [ -z \"$GIT_PREFIX\" ] || cd \"$GIT_PREFIX\" && git diff --color \"$@\" | diff-so-fancy | less --tabs=4 -RFX; }; f"
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lo = log --oneline
work = log --pretty=format:'%C(auto,yellow)%h %C(auto,blue)%>(12,trunc)%ar %C(auto,green)%<(12,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D'
poop = stash pop
pr = "!git push -u origin $(git branch-name)"
s = status
st = status -sb
save = !git add -A && git commit -m "SAVEPOINT"
tagcommit = rev-list -n 1
undo = reset HEAD~1 --mixed
unpub = "!git push origin :$(git branch-name)"
unstage = reset HEAD
wip = !git add -u && git commit -m "WIP"
wipe = !git add -A && git commit -qm "WIPE SAVEPOINT" && git reset HEAD~1 --hard
[core]
autocrlf = input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment