以 kiwi course 為例
First time collaborate
- fork kiwi to your own repo from
- clone kiwi to local
- let your local repo link to upstream (i.e. organization repo, kiwi)
1
|
|
Developing new feature
every time, you want to add new feature at local, open and checkout the branch to develop,
1
|
|
then you can start programming under the new-feature branch
Finish Developing
when feature is done, commit first
1
|
|
create/push to your own remote branch
1
|
|
and then you can give kiwi a pull request after kiwi
Sync your own repo
If the project owner agrees to merge new feature, you can,
1.sync your own repo master
1 2 3 4 |
|
2.remove local and remote branches you just used (notice you can’t at the branch you want to delete)
- delete local branch
1
|
|
- delete remote branch
1
|
|