git - Push only one file to github -


i have 2 remotes origin , other. did:

git add . git commit -m "message" git push origin master 

then want add 1 file (without git add . done before) other.

git add onefile git commit -m "message" git push other master 

but these commands push other repository previous addings. how without it?


Comments