git config and aliases

Print

These are aliases I am used to using on a daily basis now:

(in linux the file is .gitconfig usually under your home folder)

 

[user]

name = Chad Jorgenson

email = chads address

[core]

editor = vim

[merge]

tool = meld

[alias]

st = status

co = checkout

ci = commit

br = branch

staged = diff --cached

gr = log --graph --full-history --all --color --date=short --pretty=format:\"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%ad %s\"

lo = log --oneline

logshort = log --pretty=short

logfull = log --pretty=full

gonnapush = !sh -c 'git diff --stat origin/$1' -

example = !sh -c 'ls $2 $1' -

wc = whatchanged --color --pretty=format:\"%Cred%h%Creset %cr %Cgreen%s%Creset %Cblue%cn%Creset\"

wc1 = whatchanged --oneline

logauth = log --pretty=format:\"%Cred%h%Creset %cr %Cgreen%s%Creset %Cblue%cn%Creset\"

[color]

diff = auto

status = auto

branch = auto

[branch]

autosetupmerge = true