pull request collaborative development process
advantage:
- Main warehouse only administrators have permission to modify their own safety; the administrator can review the code prior to the merger;
- Each developer has its own remote repository, you can always push the code without affecting the collaborators;
Description:
Process
1. fork own warehouse
2. git clone own warehouse to local
git remote -v
origin [email protected]:fankailun/markup-designer.git (fetch)
origin [email protected]:fankailun/markup-designer.git (push)
3. Add the local repository and associated public warehouse
git remote add public 公共仓库地址
origin [email protected]:fankailun/markup-designer.git (fetch)
origin [email protected]:fankailun/markup-designer.git (push)
upstream [email protected]:TrionesFE/markup-designer.git (fetch)
upstream [email protected]:TrionesFE/markup-designer.git (push)
4. Local Development
5.git pull public master
6. git push
View relationship
git branch -vv
7. merge request
Public warehouses increased branch how to do
git checkout -b new-branch public/new-branch
git branch -vv
dev bdbfefc [origin/dev] get back template ability
* triones2 eef4796 [upstream/triones2] Merge branch 'triones2' into 'triones2'
git push origin new-branch
git branch -u origin/new-branch new-branch
git branch -vv
dev bdbfefc [origin/dev] get back template ability
* triones2 eef4796 [origin/triones2] Merge branch 'triones2' into 'triones2'