If I have a project that has not been "Cloned" from a remote Git repo, but it uses Git locally for commits and such, how do I get that project into a (possibly new) remote repo?
Do I first need to create an empty project in the remote repo and do a push from the local project? That idea doesn't seem to jive with how you have to clone the remote repo initially.
I am just not sure of this particular workflow: you have a local Git repo, but you want to integrate it with a remote Git repo like on GitHub or wherever so you can also do push(es).
Normally you would create the remote repository, then add the origin, and then push.
For example, if I had created a repository called andrewplay on git.example.com (not a real repository location), I would then run the following commands in my local directory:
Andrew Monkhouse wrote:Normally you would create the remote repository, then add the origin, and then push.
For example, if I had created a repository called andrewplay on git.example.com (not a real repository location), I would then run the following commands in my local directory:
Thanks much. I'm assuming I can do all this from Tower (Git GUI for mac).
I've never used Tower. However they claim: "Easily create, delete and rename branches, tags, and remotes". Given that, it sounds like you should be able to add your remote then push the project.
Andrew Monkhouse wrote:I've never used Tower. However they claim: "Easily create, delete and rename branches, tags, and remotes". Given that, it sounds like you should be able to add your remote then push the project.