Skip to content

Instantly share code, notes, and snippets.

@bdlangton
Created November 28, 2017 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdlangton/d15636d1b197a6aa3f17653400e9d1e3 to your computer and use it in GitHub Desktop.
Save bdlangton/d15636d1b197a6aa3f17653400e9d1e3 to your computer and use it in GitHub Desktop.
Sample gitconfig
[user]
name = Barrett Langton
email = barrett@example.com
[core]
editor = vim
filemode = false
[merge]
tool = vimdiff
[alias]
br = branch
ci = commit
co = checkout
cp = cherry-pick
pf = push --force-with-lease
dc = diff --cached
st = status -s
hist = log --pretty=format:\"%h %ad %an | %s%d\" --graph --date=short
clean = clean -fd
[color]
ui = auto
[init]
templatedir = ~/.git-templates
[push]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment