我還在學習編程的黑暗藝術。我在編程方面沒問題,但現在我在將它拉入Engine Yard之前,正努力將其推送到Github。帶GitBox的Github(Mac OS Snow Leopard)
我修改,Git把的變化,但是當我承諾,我得到了以下錯誤:
Command failed: git commit -m Updates
fatal: could not open '.git/COMMIT_EDITMSG': Permission denied
或者,當我嘗試和變化分支我得到:
error: Your local changes to the following files would be overwritten by checkout:
app/views/shared/_footer.html.erb
app/views/plans/index.html.erb
Please, commit your changes or stash them before you can switch branches.
Aborting
我不能承諾,然後我回到原點1.
我已經使用了Google,但並沒有真正理解答案。
或者如果你不介意覆蓋改變分支,你可以做git checkout -f分支 – karmakaze 2011-05-30 16:45:53
@karmakaze:同意,但大部分時間我藏起來(更安全),而且我不'不要認爲給一個新手很好的建議。 – CharlesB 2011-05-30 16:47:38