用git也是走了很多彎路。
比如:
這種錯誤
1.

$ git commit -a
fatal: Unable to create 'E:/****/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.

解決方法:
使用了$ rm -f ./.git/index.lock

然後我估計是點選了編輯,就出現了這個鬼

<****.github.io/.git/COMMIT_EDITMSG[+][RO] [unix] (18:21 22/07/2016)1,0-1 All

輸入:wq!(千萬要記住!要加上去,萬惡的電腦,少個符號都識別不了,這就是為什麼我喜歡人腦)
然後就正常了
還有這種錯誤:
2.
這裡寫圖片描述

出現這個問題是因為,沒有在github賬號新增SSH key,
為了方便,我用了HTTPS協議