I've set up gitolite on my Ubuntu server and can add users, create empty repositories, clone the empty repository, add files, commit locally, and git push origin master
to send it to gitolite.
I can also create a project in XCode4, with its own git repository, and commit changes locally.
Now I want to have another copy in gitolite (possibly so others can use, but also as another copy). This is where I'm stuck, and I'm a complete newbie to git (only really have used the XCode git functionality). Can someone direct me?
You need to add another remote to your existing repository:
git remote add newremote [email protected]:gitolite_repo
These values will be changed to suit your needs:
When you want to push to origin, you can do that as you always have. When you want to push to the new remote you just do:
git push newremote branch