• 安装
    #详情见官网下载页
    https://git-scm.com/downloads
    
  • git archive --format=zip <branch-name> > <file_name> 打包
    git  archive --format=zip master > nb.zip
    
  • -- 转义符
    git checkout -- master
    #前面加上‘--’代表master是一个文件,不是master分支
    
  • git help <command> 查看帮助
    git help -a
    git help add
    
  • github 加速
    https://fhefh2015.github.io/Fast-GitHub/
    https://ghproxy.com/
    #other 
    vi ~/.gitconfig
    [url "https://ghproxy.com/https://github.com/"]
    insteadOf = https://github.com/