Skip to content

Eonboard contributer workflow

zhanghui edited this page Jul 2, 2015 · 1 revision

Eonboard contributer workflow

by @zhanghui

workflow

1. fork Eonboard to your github account

https://github.com/eoncloud-dev/eonboard

2. local develop environment

git clone [email protected]:zhanghui9700/eonboard.git

$ git remote
>origin

$ git remote add eoncloud [email protected]:eoncloud-dev/eonboard.git

$ git remote -v
>eoncloud        [email protected]:eoncloud-dev/eonboard.git (fetch)
>eoncloud        [email protected]:eoncloud-dev/eonboard.git (push)
>origin  [email protected]:zhanghui9700/eonboard.git (fetch)
>origin  [email protected]:zhanghui9700/eonboard.git (push)

$ git fetch eoncloud
$ git merge eoncloud/master

3. implement a feature/fix a bug

$ git checkout -b feature/contract-crud master
Switched to a new branch 'feature/contract-crud'

...
do  some changes at this branch
...

$ git add .
$ git commit -a

4. push latest branch to your github

$ git featch eoncloud
$ git checkout master (if needed)
$ git merge eoncloud/master (if needed)
$ git checkout feature/contract-crud
$ git rebase master
$ git push origin feature/contract-crud

5. Make a pull request


Reference:

[1] git fetch/ git pull

[2] git rebase

[3] Git Community Book 中文版(雷锋!)