I have been developing in the local repository for some time and just setting up the git server.
In the past, when the remote repo already exists, I can do it git clone, and then the future one git pushjust works - it looks like it is associated with the remote that is being git cloneretrieved.
Since I want to direct all my existing work to this new remote, I did git remote add foo. But git pushstill not working, I have to do git push foo master.
How do I make foo masterdefault to git pushwork on it? And secondly, have I approached this correctly? How would you fill out a new remote repo with an existing local repo?
source
share