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
I think git pull --rebase is the cleanest way to set your locally recent commits on top of the remote commits which you don't have at a certain point.
git pull --rebase
So this way you don't have to pull every time you want to start making changes.