diff options
Diffstat (limited to 'README-git.md')
| -rw-r--r-- | README-git.md | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/README-git.md b/README-git.md new file mode 100644 index 0000000..4e4a57f --- /dev/null +++ b/README-git.md @@ -0,0 +1,49 @@ +Quick start: +============ + +Assume you already have a github account. Lets your account name is +"username". + +First you need to fork 2 repos: +- ChibiOS-gitmain +- ChibiOS-contrib + +Make local clone of your fork +# git clone git@github.com:username/ChibiOS-gitmain.git + +Make local branch for your feature +# cd ChibiOS-gitmain +# git branch feature +# git checkout feature + +There is no code from ChibiOS-contrib in your repo. We have to connect +ChibiOS-contrib as a git submodule +# git submodule add git@github.com:username/ChibiOS-Contrib.git community + +Make branch again, but now in freshly connected submodule +# cd community +# git branch feature +# git checkout feature + +Hack, hack, hack... Commit our changes and push to server. Note: you have +to do this for both repositories. First ChibiOS-Contrib +# cd community +# git add . +# git commit -m "Feature implemented" +# git push origin feature:feature + +Now for parent repo +# cd .. +# git add . +# git commit -m "Feature implemented" +# git push origin feature:feature + +Now all your changes published on github. Just use web interface to send +pull 2 requests: for ChibiOS-contrib and for ChibiOS-gitmain. + +Links: +====== + +https://help.github.com/ +http://git-scm.com/ +http://chibios.org/dokuwiki/doku.php?id=chibios:guides:style_guide |
