我处于一个非常奇怪的境地。我能够成功地将我的更改推送到我的远程 git 存储库。唯一的问题是即使它说它成功上传了更改,但从未进行任何更改。即使我去我的远程仓库并执行 git status。我将在“准备提交的文件”部分看到我更改的文件。我做了一个 git diff 并没有任何反应。我查看了文件,我的更改都没有
本地端
Anthonys-MacBook-Air:hrw2 numerical25$ git add app/controllers/users_controller.php
Anthonys-MacBook-Air:hrw2 numerical25$ git commit -m "new update, should work"
[wk1 888d2f8] new update, should work
1 file changed, 2060 insertions(+), 1997 deletions(-)
rewrite app/controllers/users_controller.php (97%)
Anthonys-MacBook-Air:hrw2 numerical25$ git push origin
root@superiorsoftllc.com's password:
stdin: is not a tty
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 8.24 KiB, done.
Total 5 (delta 4), reused 0 (delta 0)
To root@superdupersoft.com:/home/super/public_html/staging/hrw2
92cb549..888d2f8 wk1 -> wk1
远端
# On branch wk1
# 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: app/controllers/users_controller.php
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .htaccess.swp
# .idea/
no changes added to commit (use "git add" and/or "git commit -a")
所以问题是我可以成功地完成所有事情,但没有远程进行任何更改。如果我没有提供足够的只是让我知道。我对 git 不是很好,但我曾做过 2 个使用它的工作,所以我不是一个完全的白痴。
谢谢