我修改我的本地文件。我在本地提交,沒關係。但是當我推到github時,我有消息說所有東西都在更新。這裏是命令及其結果:爲什麼git push origin master不起作用?
git push origin master
我有以下錯誤信息:
Everything up-to-date
然後看看發生什麼事,我運行gitK命令,我必須:
我不明白爲什麼我得到這個錯誤?爲什麼我無法將我的代碼推送到github?
我運行命令:
git status
On branch dev-branch
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: deploy/openshift (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
我(字面上)不理解那個圖像。如果您查看GitHub Web UI中的歷史記錄,會發生什麼情況?最新的提交與最新的本地提交是否相符? –
請您在運行'git status'時可以包含您獲得的文本嗎? –
我不會說很多法語,但它是說「本地修改沒有在索引內部註冊並且沒有提交」? –