这是我尝试复制时发生的情况
user@machine MINGW64 /c (11.1.0)
$ git pull
Already up-to-date.
Git pull 成功,我对文件进行了更改。
user@machine MINGW64 /c (11.1.0)
$ git push
Everything up-to-date
没有发现任何东西。
user@machine MINGW64 /c (11.1.0)
$ git status
On branch 11.1.0
Your branch is up-to-date with 'origin/11.1.0'.
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)
modified: ReleaseNotes/Release_Notes_11.1.0.docx
no changes added to commit (use "git add" and/or "git commit -a")
当我执行 git status 时,它发现了一个变化
user@machine MINGW64 /c (11.1.0)
$ git add .
为提交添加了文件。
user@machine MINGW64 /c (11.1.0)
$ git push
Everything up-to-date
什么也没发现
user@machine MINGW64 /c (11.1.0)
$ git status
On branch 11.1.0
Your branch is up-to-date with 'origin/11.1.0'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: ReleaseNotes/Release_Notes_11.1.0.docx
状态已确定更改
user@machine MINGW64 /c (11.1.0)
$ git commit -m 'Release notes amended'
[11.1.0 28697fa] Release notes amended
1 file changed, 0 insertions(+), 0 deletions(-)
rewrite ReleaseNotes/Release_Notes_11.1.0.docx (62%)
本地提交
user@machine MINGW64 /c (11.1.0)
$ git push
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 50.57 KiB | 0 bytes/s, done.
Total 4 (delta 0), reused 0 (delta 0)
remote:
remote: Create pull request for 11.1.0:
remote: https://bitbucket.org/URL
remote:
To bitbucket.org:Project/repo.git
7db5eb6..28697fa 11.1.0 -> 11.1.0
现在推送成功了。
在您的情况下,当您应用推送时,一定有一些本地提交的更改。