[user] name = "lzhang" email = "lzhang@xyz.com" [color] diff = auto status = auto branch = auto interactive = auto [push] default = simple [ alias ] s = status lg = log --graph --pretty= format : '%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- date =relative pl = pull --rebase bl = branch -al ch = checkout sl = stash list ss = "!sh -c 'git stash show -p stash@{$1}' -"
# For the next commit $ git add . # add to index only files created/modified and not those deleted $ git add - u # add to index only files deleted/modified and not those created $ git add - A # do both operation at once, add to index all files