.gitignore sample file

create ~/.gitconfig and add the following content:

[user]
  name =  <your user name>
  email = <your email>
[core]
  editor = <your favorite editor, usually vim>
  autocrlf = input
  pager = less
[color]
  ui = true
[alias]
  alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /
  co = checkout
  st = status
  br = branch
  ci = commit
  lg = log -1
  lg10 = log --oneline --graph -n10
  lg15 = log --oneline --graph -n15
  lg20 = log --oneline --graph -n20
  lg50 = log --oneline --graph -n50
  lg100= log --oneline --graph -n100
  alg10 = log --oneline --graph -n10 --all
  alg15 = log --oneline --graph -n15 --all
  alg20 = log --oneline --graph -n20 --all
  alg50 = log --oneline --graph -n50 --all
  alg100= log --oneline --graph -n100 --all
  unstage = reset HEAD -- 
  pl = log --graph --decorate --abbrev-commit --all --format=\"%C(yellow)%h%Creset %Cgreen%an %aD%Creset %C(blue)%cn %cD%Creset %C(red)%d%Creset %s\"
  lg = log --pretty=format:\"%C(yellow)%h %C(cyan)%an %Cgreen%ad %Creset%s\" --date=short  
[merge]
  tool = vimdiff
[diff]
  tool = vimdiff  
[pull]
  rebase = false
[push]
  default = simple
[credential]
  helper = store