0
的Git拉遠程生產服務器上的過早停止,因爲錯誤的權限:修復未完成的git拉
[email protected] src $ git pull
...
Updating 45e2051..80f6f43
error: unable to create file src/templates/s/logo.eps (Permission denied)
現在的權限應該是固定的,但回購壞了,我該怎麼辦?我是git的新手,現在至關重要的是不要犯錯誤,這就是我在這裏問的原因。
[email protected] src $ git status
# On branch master
# Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.
#
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: templates/base.html
# deleted: templates/howto.html
...
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# templates/management.html
# templates/recaptcha.html
...
no changes added to commit (use "git add" and/or "git commit -a")
是否'git的復位--hard'清理未跟蹤的文件以及? – 2014-02-19 20:49:34
@Cupcake好點,固定 – fge
太棒了,它的工作,我不得不添加-f到第一個命令,雖然:'git clean -f -d' – zahory