How to add two branches (master & develop) to redmine

I installed Redmine on Debian. Also use Git with a wizard (default) and create branches. I want to integrate Git into redmine to display these two branches in it.

But at present, redmine only shows the leading branch.

+3
source share
1 answer

After reading some lessons ....

The initial new project "testproject" in gitoz. Add some users.

Edit gitosis.conf :

[group testproject]
members = user1 user2
writable = testproject

save it ...

git add .
git commit -am 'add new project TESTPROJECT and users'
git push

OK. Let me create our new project:

mkdir testproject
cd mkproject
git init
git remote add origin git@192.168.48.15:testproject.git
touch readme.txt

edit readme.txt

git add .
git commit -am 'init master branch'
git push origin master:refs/heads/master

OK. now we have created the main branch. let me create a development branch:

git branch develop
git checkout develop
touch newfile.txt

edit newfile.txt

git add .
git commit -am 'init develop branch'
git push origin develop:refs/heads/develop

Now we create new repositories with two branches (master | develop)

On the way to configure redmine to our ... /testproject/.git

all this

+5
source

Source: https://habr.com/ru/post/1794397/


All Articles