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         
        
Best way for me is:
Or you can push newly created branch on remote and merge there (if you do it this way, at the end you need to pull from remote master)