You probably don't want to do this. The branches in git are very nice and light, and there really is no reason why you should not just create a branch in the repository that you have right now. The only reason I can come up with this with the gitosis repository is to make access control interesting if you have a continuous deployment or something that pulls out of one gitosis repository and you want to give the code access to the same code but donβt want them to be able to write those that have been deployed. For all other purposes, you just need to create a branch with git branch and do all your work in the branch. Alternatively, you might want to clone the github repository and then work on it in your central gitosis architecture.
Given this preliminary warning, the easiest way to create a fork in the way you describe is to create a separate repository on the gitosis server. Therefore, configure another repository with a different name - for example, if your source repository is gitosis@server :repo1.git , you must set another one in gitosis@server :repo1-fork.git . Add all the users you want to access.
Then you clone the repository: git clone gitosis@server :repo1.git , which puts the full copy of the repo in ./repo1 . To copy it from the local version to the forked repository, you can do git push gitosis@server :repo-fork.git --mirror .
jamuraa
source share