Skip to content

Instantly share code, notes, and snippets.

@disconnect3d
Created July 18, 2019 00:29
Show Gist options
  • Save disconnect3d/d832a7509ec6afd89df9d2d93c001130 to your computer and use it in GitHub Desktop.
Save disconnect3d/d832a7509ec6afd89df9d2d93c001130 to your computer and use it in GitHub Desktop.
My gitconfig
# 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