vinyuri
vinyuri

Reputation: 733

How to clone git repositories on redmine?

I configure my repo as /home/repo/gitrepo/myproj.git on redmine.

Now, i want to clone it on my laptop but i cannot see the url

what url should i use?

Upvotes: 5

Views: 5921

Answers (3)

Vayodya Tamari
Vayodya Tamari

Reputation: 285

How to clone a git repository in windows ?

  • Install git bash to the computer
  • Open git bash command prompt
  • Go to the correct folder location :

    • cd /F -> (for change to the F partition)
    • Using cd got to the location path :- Sunburst
    • Create folder :- mkdir Source
    • Type :- git clonehttps://integritas.git.beanstalkapp.com/sunburst.git(git repoitory URL) and click enter button
  • You can see the repository is downloading. Sometimes it will ask the username and the password which access of repository URL is contained site

Upvotes: -1

Larry Cai
Larry Cai

Reputation: 60143

It is better to use some git repositories manager to do this, and I recommend to use gitolite for small case, see guideline http://progit.org/book/ch4-8.html, then you can do as follow

  1. mostly use git user to do git clone, so migrate /home/repo/gitrepo/myproj.git to /home/git/repositories/myproj.git
  2. re-config it in redmine using new git directory

In more professional way (I think) is to set git repo seperately and sync to redmine git repo.

  1. you can setup git repo by gitolite or gerrit in other place
  2. run git sync (crontab like) to sync this git repo into your local git repo.

The second case is more independant and easy to manage by different people.

Upvotes: 0

P Shved
P Shved

Reputation: 99374

If you're doing this for personal use, you could be well done with accessing your repository via ssh.

git clone [email protected]:gitrepo/myproj.git

However, you might want to search for a more powerful Redmine plugin for Git support, or use repository management system, such as gitosis.

Upvotes: 3

Related Questions