gitosis-init for 2nd user? (need to make a new owner for gitosis-admin)

Here’s the situation:

We have a git repository, managed by gitosis. One user user managed the gitosis-admin repository (via git-init).

  • git format-patch : how can I get it to ignore already merged commits?
  • To color a limited number of lines in git log --oneline
  • Where to put last git commit id in an rpm
  • View diff between two git revisions in VS2013
  • Is there a way to clone a repo without creating the containing directory?
  • Git error: 'Refusing to lose untracked file' when doing merge
  • Now we need to add other users to access gitosis-admin, however the initial user’s laptop died, so they do not have access to the gitosis-admin repository (normally you would just commit a change to that repository to add users).

    So…how do I add new users to the git projects that gitosis managed, when I don’t have access to gitosis-admin? All I have access to is the server where git and gitosis are installed.

    I tried running ‘sudo -H -u git gitosis-init < /tmp/key.pub’ for the 2nd user, but that did not work. gitosis keeps asking for the ‘git’ ssh password when trying to clone the gitosis-admin repository. And without cloning the gitosis-admin repo it doesn’t seem like I can add any users as authorized user to make changes to that or other repos…

    Any wizards know how to handle this situation?

    Thanks!

  • Dealing with Git Corrupt objects and 'has dot git' in tree
  • With mvn release:prepare, is it possible to instruct Maven to use a forward slash in the submodule pom locations for the commit command?
  • How to solve git conflicts by having only the conflict files?
  • How to find out what files were changed in a git branch (not the difference between two branches)
  • How to create GIT project on self-hosted Team Foundation Server 2012
  • Shorthand to view diff of previous version of file
  • One Solution collect form web for “gitosis-init for 2nd user? (need to make a new owner for gitosis-admin)”

    Following this tutorial solved it: http://jeetworks.org/node/18

    Had to checkout gitosis-admin locally on the server and make the changes.

    Phew!

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