When do I need to do “git pull”, before or after “git add, git commit”?

前端 未结 6 918
忘了有多久
忘了有多久 2020-12-22 16:14

What is the right way?

git add foo.js
git commit foo.js -m \"commit\"
git pull
git push

Or

git pull
git add foo.js
git comm         


        
6条回答
提交回复
热议问题