Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6685345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:02:50+00:00 2026-05-26T05:02:50+00:00

Using gitosis to configure repositories works quite well. However, manually creating every repository is

  • 0

Using gitosis to configure repositories works quite well.

However, manually creating every repository is quite cumbersome, especially as it has to be done on command line. (git init, git remote add, git commit, git push)
As the majority of our projects are OSGi-Bundles, we can use almost the same repository layout and pom-file for each project.
So instead of creating all this every time we have to create a new bundle i’d like to do something like this:

  1. User configures repository in gitosis-admin [works already]
  2. User pushes changes to gitosis [works already]
  3. gitosis enables access to repository [works already]
  4. gitosis creates a repository from a stub (containing .gitignore, pom.xml, empty src/ directory) [NEEDS TO BE DONE]
  5. User clones repository. [works already]
  6. User imports working copy into eclipse [works already]

Is there already a solution/common way to solve step 4? I’m currently thinking on using a git-hook to detect repository configuration. However, it seems that is may be necessary to parse the gitosis.conf file every time post-update is called.

Ideally, I’d like to use some git information to fill the pom.xml file (Repository-Name as artifactID, repository description as artifact description, etc..)

Is there a more convenient/robust way to get information about configured but not yet created repositories?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:02:51+00:00Added an answer on May 26, 2026 at 5:02 am

    You could create a template repository somewhere that looks like this:

    $ ls -A
    .gitignore
    pom.xml
    src/.gitignore
    setup-remote
    

    Then your workflow for new repositories looks like this:

    • Developer clones the template repository:

      $ git clone .../template.git my-new-repo
      
    • Developer runs the setup-remote script to configure access to the
      actual remote repository:

      $ cd my-new-repo
      $ ./setup-remote
      

    And the setup-remote script takes care of:

    git remote rm origin
    git remote add origin .../my-new-repo.git
    git push origin master
    

    This presumes that Gitosis has been configured such that the developer can push to the remote repository.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using gitosis to manage a bunch of private repositories. Everything works great
I have gitosis setup and working wonderfully using ssh. git@domain.com:repository.git works just as expected.
I have a whole bunch of git repositories in /srv/git manually administrated (not using
I've set up gitosis using the tutorial privided at: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way I found that I
I'm using gitosis to host a git repository on my home server. I've set
I've set up a git repository using gitosis. I've cloned the repository, and I
I just setup an git repository using gitosis. What I can't figure out is
We are running a GIT repository using gitosis and we need to forbid the
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain
I set up gitosis on a server. Cloning and pushing from my laptop works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.