Last active
December 20, 2015 06:29
-
-
Save ssimeonov/6086152 to your computer and use it in GitHub Desktop.
~/.gitconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ADD LOCAL CONFIGURATION HERE | |
| [user] | |
| name = Simeon Simeonov | |
| email = sim@fastignite.com | |
| [core] | |
| editor = mate -w | |
| excludesfile = /Users/sim/.gitignore_global | |
| # DO NOT EDIT BELOW THIS LINE | |
| [push] | |
| default = tracking | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| ui = auto | |
| [format] | |
| pretty = %Cred%h%Creset %Cgreen[%ar]%Creset (%an) %s | |
| [alias] | |
| a = add | |
| br = branch | |
| c = commit -a | |
| cm = commit -am | |
| co = checkout | |
| cv = commit -v | |
| dc = diff --cached | |
| df = diff | |
| di = diff | |
| dic = diff --cached | |
| graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative | |
| last = log -1 HEAD | |
| lg = log -p | |
| lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
| lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
| ls = ls-files | |
| out = log origin..HEAD | |
| pl = pull | |
| plre = pull --rebase | |
| pr = remote prune origin | |
| ps = push | |
| rbc = rebase --continue | |
| rbi = rebase -i | |
| rv = remote -v | |
| st = status | |
| unstage = reset HEAD -- | |
| # Show files ignored by git: | |
| ign = ls-files -o -i --exclude-standard | |
| # Interactive rebase up to and including the common parent with another branch | |
| rbi-parent = "!f() { git rebase -i $(git merge-base $1 $(git rev-parse --abbrev-ref HEAD))^; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment