Created
July 18, 2019 00:29
-
-
Save disconnect3d/d832a7509ec6afd89df9d2d93c001130 to your computer and use it in GitHub Desktop.
My 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
# dotfile: ~/.gitconfig | |
# vim: ft=gitconfig | |
[alias] | |
ci = commit | |
co = checkout | |
br = branch | |
st = status | |
cp = cherry-pick | |
subup = submodule update --init --recursive | |
unstage = reset HEAD -- | |
uncommit = reset --soft HEAD^ -- | |
changes = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\" --name-status | |
hl = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
ll = "!f() { git --no-pager hl -$((`tput lines`/2)) $@; }; f" | |
sdiff = "diff --staged" | |
[annotate] | |
date = relative | |
[diff] | |
ignore-space-change = true | |
ignore-all-space = true | |
[color] | |
ui = true | |
[merge] | |
summary = true | |
verbosity = 1 | |
ff = only | |
[push] | |
default = simple | |
[rebase] | |
autosquash = true | |
[core] | |
autocrlf = input | |
editor = vim | |
[user] | |
name = "<put your name here>" | |
email = "<put your email here>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment