Skip to main content

Posts

Showing posts with the label Git

Change your .gitconfig file

[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}' -"

非常好的 git 教程

教程1: http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 教程2: https://github.com/geeeeeeeeek/git-recipes/wiki?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io

Git a lot of files

# 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