- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
remote repo:
git@git.tw:demo_repo
git@git.tw:demo_repo
remote branch list:
- develop_demo_repo
- release_demo_repo
- clone remote repo's release_demo_repo branch
$ git clone -b release_demo_repo gitolite@git.tw:demo_repo demo_repo $ cd demo_repo
- make new branchs local/hotfix/feature/anyone etc. and checkout it
(release_demo_repo)$ git checkout -b hotfix
- add/commit file changes
(hotfix)$ touch index.php (hotfix)$ git add index.php (hotfix)$ git commit -m "add index.php"
- merge remote changes into local develop_demo_repo
(hotfix)$ git checkout develop_demo_repo (develop_demo_repo)$ git pull (develop_demo_repo)$ git merge --no-ff origin/develop_demo_repo
- merge branchs local/hotfix etc. into develop_demo_repo
(develop_demo_repo)$ git merge --no-ff hotfix
- push branch develop_demo_repo to origin/develop_demo_repo
(develop_demo_repo)$ git push origin develop_demo_repo
- beta test
- merge remote changes into local release_demo_repo
(develop_demo_repo)$ git checkout release_demo_repo (release_demo_repo)$ git pull (release_demo_repo)$ git merge --no-ff origin/release_demo_repo
- merge branchs local/hotfix etc. into release_demo_repo
(release_demo_repo)$ git merge --no-ff hotfix
- push branch release_demo_repo to origin/release_demo_repo
(release_demo_repo)$ git push origin release_demo_repo
- online release
- remove hotfix branch
(release_demo_repo)$ git br -D hotfix
- loop steps 2~12 to develop new feature
留言