Skip to content

Instantly share code, notes, and snippets.

@bipinu
Forked from oli/gist:1637874
Last active June 22, 2020 15:47
Show Gist options
  • Save bipinu/9027135 to your computer and use it in GitHub Desktop.
Save bipinu/9027135 to your computer and use it in GitHub Desktop.
[user]
name = [name for commits]
email = [email for commits]
[github]
user = [GH username]
token = [API token from https://github.com/account/admin]
[color]
ui = auto
interactive = auto
[push]
default = simple
[alias]
s = status
c = commit
f = fetch
ass = !git add . && git status
ch = checkout
ci = commit
cm = commit -m
acm = !git add . && git commit -m
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
ls = log --stat --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
dc = diff --color-words
dcr = diff --color-words head origin
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort
pushall = !git remote | xargs -L1 git push --all
pall = !git remote | xargs -L1 git push --all
[core]
excludesfile = /Users/bipin/.gitignore
legacyheaders = false # >git 1.5
quotepath = false
# http://stackoverflow.com/questions/136178/git-diff-handling-long-lines
# if ↑ doesn’t work, try: pager = less -+$LESS -FRX
pager = less -r
editor = /usr/bin/vim
[repack]
usedeltabaseoffset = true # >git 1.5
[diff]
# git does copy/rename *detection*. if you want it to track copies/renames:
# http://stackoverflow.com/questions/1043388/record-file-copy-operation-with-git
# renames = copies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment