Created
April 20, 2018 09:24
-
-
Save angelodlfrtr/8b1d90a44b70dc2d77d1bc1249f7a259 to your computer and use it in GitHub Desktop.
Place in $HOME/.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
| [user] | |
| name = Jean | |
| email = jean@pierre.fr | |
| [push] | |
| default = matching | |
| [alias] | |
| c = clone | |
| st = status | |
| ci = commit --verbose | |
| co = checkout | |
| cob = checkout -b | |
| di = diff | |
| dc = diff --cached | |
| amend = commit --amend | |
| aa = add --all | |
| ff = merge --ff-only | |
| pullff = pull --ff-only | |
| noff = merge --no-ff | |
| fa = fetch --all | |
| pom = push origin master | |
| pc = push | |
| b = branch | |
| ba = branch --all | |
| ds = diff --stat=160,120 | |
| dh1 = diff HEAD~1 | |
| dh = diff HEAD | |
| fire = !git branch --merged | grep -v "\\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d | |
| uaf = !git up && git fire | |
| # Fancy logging. | |
| h = head | |
| # hp = head with patch | |
| # r = recent commits, only current branch | |
| # ra = recent commits, all reachable refs | |
| # l = all commits, only current branch | |
| # la = all commits, all reachable refs | |
| head = !git r -1 | |
| h = !git head | |
| r = !GIT_NO_PAGER=1 git l -30 | |
| ra = !git r --all | |
| up = !git fetch && git rebase --autostash FETCH_HEAD | |
| [core] | |
| editor = nvim | |
| [color] | |
| ui = auto | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| [push] | |
| default = current | |
| [pull] | |
| default = current | |
| [man] | |
| viewer = catman | |
| [man "catman"] | |
| cmd = man -P cat | |
| [filter "lfs"] | |
| clean = git-lfs clean -- %f | |
| smudge = git-lfs smudge -- %f | |
| process = git-lfs filter-process | |
| required = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment