这是我第二次推送我的代码,它说 Everything up-to-date。 GitHub 中的存储库未反射(reflect)任何更改。
第一次是在github上设置git repo,按照设置教程:
http://help.github.com/create-a-repo/
但是这次我修改了那些文件并尝试
git commit -m "msg";
git add file;
git push origin master;
更改没有反射(reflect)在远程页面上。 任何人都知道我怎样才能将更改提交到 github?
最佳答案
您首先添加一个文件,然后提交,然后推送。
改为这样做:
git add file;
git commit -m "msg";
git push origin master;
关于提交后 git push 得到 "Everything up-to-date",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5936372/