How to move local Git repository (with history) to be managed by Gitosis on remote server?

I’m switching from SVN to Git with Gitosis installed on a central server for centralized repositories on Ubuntu server.

I have had all my SVN repositories moved and initiated into new Git repositories, and also had all history moved to Git.

  • child branch and parent branch synching themselves
  • Git check if there is outstanding commits to push
  • GIT workflow w/ multiple workstations and a centralize server
  • How to isolate Eclipse workspace from git local repository?
  • What's the difference between `git diff --patience` and `git diff --histogram`?
  • What happens if i push a tag for a commit that hasn't been pushed
  • Now that I have all the repositories migrated to Git, I want to add all the repositories into Gitosis to be managed by Gitosis.

    How can I move the repositories (Git initiated ones) into Gitosis /srv/gitosis/repositories and manage them through gitosis-admin.git remotely?

  • Removing file pattern with git-update-index --remove
  • Gradle: Passing variable from one task to another
  • Require Git TFS pushes to link to work item
  • Maintaining a multi-submodule project using git
  • Project from https://android.googlesource.com
  • What does git merge origin branchname do?
  • 2 Solutions collect form web for “How to move local Git repository (with history) to be managed by Gitosis on remote server?”

    The idea is to declare you repo in the conf/gitosis.conf file from your gitosis-admin local (cloned) repo:

    [group groupname]
    writable = reponame
    members = username
    
    git add -A
    git ci -m "updated configuration"
    git push
    

    , which will create a bare repo, to which to which you can push your local repo.

    mkdir myproject
    cd mypyroject
    git init
    # do some work, git add and commit files
    # Then add your server as a remote and push:
    
    git remote add serveralias git@hostname:reponame.git
    git push serveralias master
    

    See this tutorial for more


    That being said, I find gitolite much more complete than gitosis, like all those recent blog posts illustrate:

    • A Pure Git Deploy Workflow (with Jekyll and Gitolite)
    • Git Repository Server using Gitolite
    • Gitolite installation with gitweb and anongit in Gentoo and Debian

    And you can migrate from gitosis to gitolite easily enough.

    I recommend this tutorial for managing gitosis repositories if you have successfully installed it:

    http://fclose.com/b/1434/managing-repositories-on-git-server-using-gitosis/

    Most of the normal management work (Add new administrator, Create a new user, Create a new repository, etc) can be done on administrator’s side by editing and pushing gitosis-admin repository. You need to login to the gitosis server to do other things like adding hook script to send email automatically when somebody pushes, etc.

    Git Baby is a git and github fan, let's start git clone.