Last active
May 4, 2021 07:52
-
-
Save moux2003/0af537760a5b1c140a21 to your computer and use it in GitHub Desktop.
git config file
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
| [alias] | |
| # Checkout | |
| co = checkout | |
| # Clean sync remote/local branches | |
| cl = "! git fetch -p && for branch in $(git branch -vv | grep ': disparue]' | awk '{print $1}'); do git branch -D $branch; done" | |
| # View abbreviated SHA, description, and history graph of the latest 20 commits | |
| l = log --pretty=oneline -n 20 --graph --abbrev-commit | |
| # | |
| lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(cyan)%d %Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative | |
| # | |
| lga = log --graph --pretty=tformat:'%Cred%h%Creset -%C(cyan)%d %Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative --all | |
| # | |
| logfull = log --pretty=fuller --graph --stat -p | |
| # | |
| lg-grep = ! git rev-list --all | xargs git grep -F | |
| # View the current working tree status | |
| st = status | |
| rebc = rebase --continue | |
| unstage = reset HEAD | |
| uncommit = update-ref HEAD HEAD^ | |
| [apply] | |
| # Detect whitespace errors when applying a patch | |
| whitespace = fix | |
| [branch] | |
| autosetupmerge = true | |
| [color] | |
| ui = true | |
| [color "branch"] | |
| current = yellow bold | |
| local = yellow | |
| [color "diff"] | |
| meta = cyan | |
| [color "status"] | |
| untracked = cyan | |
| [core] | |
| # Use custom `.gitignore` and `.gitattributes` | |
| excludesfile = ~/.gitignore | |
| attributesfile = ~/.gitattributes | |
| # Treat spaces before tabs and all kinds of trailing whitespace as an error. | |
| # [default] trailing-space: looks for spaces at the end of a line | |
| # [default] space-before-tab: looks for spaces before tabs at the beginning of | |
| # a line | |
| whitespace = space-before-tab,-indent-with-non-tab,trailing-space | |
| # Make `git rebase` safer on OS X | |
| # More info: <http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/> | |
| trustctime = false | |
| autocrlf = input | |
| filemode = false | |
| [color] | |
| # Use colors in Git commands that are capable of colored output when | |
| # outputting to the terminal. (This is the default setting in Git ≥ 1.8.4.) | |
| ui = auto | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow | |
| remote = green | |
| [color "diff"] | |
| meta = yellow bold | |
| frag = magenta bold | |
| old = red bold | |
| new = green bold | |
| [color "status"] | |
| added = yellow | |
| changed = cyan | |
| untracked = magenta | |
| [pull] | |
| rebase = true | |
| [merge] | |
| # Include summaries of merged commits in newly created merge commit messages | |
| log = true | |
| [push] | |
| default = matching | |
| [user] | |
| name = Maxime HERMOUET | |
| email = my@mail.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment