enricojoerns.de

Push existing git repository to gitolite

25.10.2013

Add to conf/gitolite.conf:

repo    reponame
  RW+ = <user>

(i.e. add it to your local conf file, commit it, push it)

Add your gitolite server as remote to you existing repository:

git remote add newremote git@gitolite.com:reponame

Push a branch of your repository to gitolite server:

git push newremote branchname

If your server should be the default remote for this repo/branch:

git push newremote branchname --set-upstream