什么是正确的方法?
git add foo.js
git commit foo.js -m "commit"
git pull
git push
Run Code Online (Sandbox Code Playgroud)
要么
git pull
git add foo.js
git commit foo.js -m "commit"
git push
Run Code Online (Sandbox Code Playgroud)
要么
git add foo.js
git pull
git commit foo.js -m "commit"
git push
Run Code Online (Sandbox Code Playgroud)
UPD:
我忘了提及,在这种情况下,我使用的git add,要进行一次跟踪和修改的文件.不要将全新文件包含到存储库中.这会改变命令的顺序吗?