??Redmine??????Git?姹�??
???????????? ???????[ 2017/1/16 10:45:56 ] ?????????????????? Redmine
????Redmine ???? Wiki ???????????????????????????? Best Practice ??????????? Redmine ?????? Git ?姹�?? ??????? ?????????????????些???????????????????
????· ??????? Clone ?姹�??
????· ??????? ???? Redmine
????· ?????????????掳姹�??
????· ????????????姹�????
????· ??? redmine ?????????? redmine ??
????· ????????? /srv/redemine ????????????? /srv/redmine/repos ??
????git ???????? ssh://redmine@git.mysite.com:29418/a.git ?? ssh://redmine@git.mysite.com:29418/b.git ??????????? Gerrit????
????Redmine ???????????????姹�???? Clone ????姹�?????????械??????写?? Redmine ????????小?
??????????? Clone ?姹�??
??????????? MIRROR ???? Clone ?????姹�??Mirror ????姹�??????????????????????????????????????????? Clone ????????小?????????
????sudo -su redmine
????cd /srv/redmine/repos/
????git clone --mirror ssh://redmine@git.mysite.com:29418/a.git
????git clone --mirror ssh://redmine@git.mysite.com:29418/b.git
??????????????? Redmine ?????e姹�???路????
??????????? ???? Redmine
???????? “administration > project -> repositories” ???婵�??姹�???????????? “project -> settings -> repositories” ????姹�???????
????· Type: GIT
????· Main-repository: ????????姹�?????姹�????????????
????· Name: ???????煤?姹�????????????
????· Path: ?姹�????????????路???? /srv/redmine/repos/a.git
?????姹�??????????????????????????姹�????? b.git ?????????姹�????????????????????????贸??????姹�???????效?????渭????????
?????????????????????姹�???????????姹�?????????????姹�?????
??????????姹�???谐??????????????????未??姹�????????????????????? Redmine ???姹�???械??????写???????????貌???????妾�
????????????????????????????????锟�? Attaching an existing repository to a project ??
?????????????????掳姹�??
????Redmine ?????????????掳姹�???????????? GitHook ?????????掳姹�???????????? Crontab ??????
?????????????瓒�??? 5 ???????????????巍?
????sudo crontab -e -u redmine
????# ?????????? redmine ????锟�?????????
????crontab -e
????# ?????????????????????????写???????????
????*/5 * * * * git -C /srv/redmine/repos/a fetch --all
????*/5 * * * * git -C /srv/redmine/repos/b fetch --all
????????????????姹�????
????Redmine ????????????????????????????? master ????????????????? git flow ?????? ??????????????????????? develop ??
?????????????????????? --mirror ???? clone ?????校???????? git checkout develop ???谢??????????
???????????????????????????谢????????
????git symbolic-ref HEAD refs/heads/develop
????symbolic-ref ?????????????? git-symbolic-ref ??
???????????????????? /srv/redmine/repos/a.git/HEAD ????????????????效????
????????????懈???????
??????????????薪??姹�??? Referencing keywords ??????? issue???? Fixing keywords ?????????? fix ??
?????????????????????????????????1??2??????????3??? ???? ????
??????????? issue #1?? #2 ?? fix #3
??????????? issue:#1?? #2 ?? fix:#3
??????????? issue: #1?? #2 ?? fix: #3
??????

???路???
??????????????????
2023/3/23 14:23:39???写?貌??????????
2023/3/22 16:17:39????????????????????些??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???路???????路
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11