1. 本地刪除分支:
git branch -d uc-sign-mode1-timeout-filter
注意: 再次使用 git checkout uc-sign-mode1-timeout-filter
?會再從遠程分支pull下來上述分支
2. 刪除上面的遠程分支:
git push origin :uc-sign-mode1-timeout-filter
注意:冒號左邊留空就表示刪除后面的遠程分支??!
3. git diff應該在git commit之前
4. git branch -av 顯示本地和遠程的分支的詳細信息
5. git remote -v 顯示所有遠程信息
6. git reflog
7. git log --graph
8. git checkout -b NewBranchName
9. 將本地.gitconfig拷貝到ubuntu服務器上后,git diff --help 出現(xiàn)以下錯誤
fatal: '/usr/share/doc/git/html': not a documentation directory.
原因是一下一行需要要注釋:
[help]
#format = html
上面一行導致ubuntu查找html文件作為幫助文檔但是找不到!
10. git autocorrect spell
git config--global help.autocorrect 1