git stash
https://git-scm.com/book/zh/v1/Git-%E5%B7%A5%E5%85%B7-%E5%82%A8%E8%97%8F%EF%BC%88Stashing%EF%BC%89
git stash list
git stash apply stash@{2}
git checkout
https://git-scm.com/book/zh/v1/Git-%E5%88%86%E6%94%AF-%E8%BF%9C%E7%A8%8B%E5%88%86%E6%94%AF
git branch
git checkout -b sf origin/dev-feature/customer
git branch -d origin/dev-feature/customer
git branch -a
git clone
git clone https://github.com/sferik/sign-in-with-twitter.git signin
git fork
Fork出的項目中更新主流代碼方式:
通過命令行添加遠(yuǎn)程主流的分支:
git remote add upstream http://原始項目的git地址URL
通過:git remote -v
查看當(dāng)前倉庫所有的內(nèi)部和外部分的流。再通過檢出主流分支即可究珊。其他的都一樣
參考:http://www.reibang.com/p/3053b25a50e2
https://blog.csdn.net/caogos/article/details/78261008
git 還原
git reset --hard HEAD --
git 用戶名密碼存儲
git config --global credential.helper store