Apache'Mynewt'mirror'on'github'
!"#$%&'()*+,-,($.+"/(%&,#)01*2/.3#1()0.4
User'fork'on'github'
!"#$%&'()*+5%6.07+"/(%&,#)01*2/.3#1()0.4
STEPS''TO'WORK'WITH'CODE'IN'DEVELOP4
Step'1:'80.,#.4,49)0:4)94#$.4./;0.4<2/.3#40.-)6"#)024)/4!"#$%&'()*'4
4
Step'2:'=.#%-40.-)6"#)024)/42)%04>,-#)-4,64)%#>"/.?4%/?.04@=#.-4A4BC-,/?.?D4#)4%6.4
()?.4"/4@?.E.>)-D4&0,/($'4F)%4#$./4(0.,#.4,4/.34&0,/($4@*2&0,/($D4%6"/!4@!"#4
($.(:)%#4G&D'4F)%4,>6)4,??4,40.*)#.4$,/?>.4/,*.?4@9)0:D4#$,#4-)"/#64#)4#$.4!"#$%&4
9)0:42)%4(0.,#.?4"/4=#.-4H'4
4
Step'3:'8$.(:42)%4,0.4"/4@*2&0,/($D'4I0"#.4()?.'4=#,!.4,/?4()**"#42)%04($,/!.64
J.C,*->.46$)364,??"/!4,>>K'4
$ git checkout mybranch 4
$ git add .
$ git commit –m “your message about your code changes”
4
Step'4:'L>3,264-%>>4#$.4>,#.6#490)*4?.E.>)-4)/4L-,($.4*"00)04#)4@*2&0,/($D4&.9)0.4
-%6$"/!4,/24($,/!.64#)40.*)#.6'4M942)%46..4*.0!.4()/N"(#6O40.6)>E.4#$.*4P06#'4
$ git pull --rebase origin develop
4
Step'5:'Q%6$42)%04($,/!.64#)4@*2&0,/($D4&0,/($4)/42)%04!"#$%&49)0:'4M94@*2&0,/($D4
?).64/)#4.C"6#42.#4)/42)%04!"#$%&49)0:O4#$.4()**,/?4,%#)*,;(,>>24(0.,#.64"#'4
$ git push fork mybranch
4
Step'6:'R./.0,#.4,4-%>>40.S%.6#490)*4@*2&0,/($D4"/42)%049)0:4#)4@?.E.>)-D4"/4<2/.3#'4
Step'2'Expanded:'
$ newt new devproject
$ cd devproject
$ vi project.yml
# change version to 0-dev for repository.apache-mynewt-core
$ newt install
$ cd repos/apache-mynewt-core
$ git status
On branch develop
Your branch is up-to-date with 'origin/develop'.
nothing to commit, working directory clean
$ git checkout –b mybranch
$ git remote -v
origin https://github.com/apache/incubator-mynewt-core.git (fetch)
origin https://github.com/apache/incubator-mynewt-core.git (push)
$ git remote add fork https://github.com/<user>/incubator-mynewt-core
$ git remote -v
origin https://github.com/apache/incubator-mynewt-core.git (fetch)
origin https://github.com/apache/incubator-mynewt-core.git (push)
fork https://github.com/<user>/incubator-mynewt-core (fetch)
fork https://github.com/<user>/incubator-mynewt-core (push)
Fork'repo'on'github'(Step'1)'
*,6#.04
?.E.>)-4
*,6#.04
?.E.>)-4
User'laptop'
?.E-0)T.(#+0.-)6+,-,($.1*2/.3#1()0.4
*,6#.04
?.E.>)-4
UVMRMW4
XUVY4
Pull'request'from'user:mybranch'to''
apache:develop'(Step'6)'
git'pull'(Step'4)'
Set'up'local'repo'(Step'2)'
git'push'(Step'5)'
*2&0,/($4
*2&0,/($4
Commit'change'''''
'(Step'3)'
M/?"(,#.64?"0.(;)/4)94()?.4N)34