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 commit foo.js -m "commit"
git push
Or
git add foo.js
git pull
git commit foo.js -m "commit"
git push
UPD:
I forgot to mention that in this case I use git add
to stage a tracked and modified file. Not to include a brand new file to repository. Does this changes an order of commands?