Assign a remote for Git Push
I've been developing in a local repository for a while and just set up a git server.
In the past, when the remote repo already exists, I can do a git clone, and then future git push just works -- it seems to be associated with the remote that git clone retrieved.
Since I want to push all my existing work to this fresh remote, I did a git remote add foo. But git push still doesn't work, I have to do a git push foo master.
How can I make foo master be the default so that git push works on it's own? And secondly, did I approach this in the right way? How would you populate a new remote repo with an existing local repo?
If you want git push to push to a remote without any additional parameters, rename that remote from foo to origin.