Skip to content

Instantly share code, notes, and snippets.

@Amitesh
Forked from arnabc/gitosis-repo-creation
Created June 22, 2011 07:05
Show Gist options
  • Save Amitesh/1039620 to your computer and use it in GitHub Desktop.
Save Amitesh/1039620 to your computer and use it in GitHub Desktop.
Gitosis repo creation ( it assumes that you have a working gitosis repository in a central server and have the permission to create new repositories)
Add repo in local gitosis-admin/gitosis.conf
~$ mkdir your_repo_name
~$ cd your_repo_name
~$ git init
~$ git remote add origin git@YOUR_SERVER_HOSTNAME:your_repo_name.git
# do some work, git add and commit files
~$ git add .
~$ git commit -m 'Your Message'
# push the new repo to central repository ( gitosis )
~$ git push origin master:refs/heads/master
# remove the repo and clone it back again
~$ cd ..
~$ rm -rf your_repo_name
~$ git clone git@YOUR_SERVER_HOSTNAME:your_repo_name.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment