我还在学习编程的黑暗艺术。我在编程方面没问题,但现在我在将它拉入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