ChibiOS-Contrib/README-git.txt

50 lines
1.2 KiB
Plaintext
Raw Normal View History

2014-10-11 04:59:57 -07:00
Quick start:
2014-10-19 10:35:29 -07:00
============
2014-10-11 04:59:57 -07:00
2014-10-19 10:31:18 -07:00
Assume you already have a github account. Lets your account name is
"username".
2014-10-11 04:59:57 -07:00
2014-10-19 10:31:18 -07:00
First you need to fork 2 repos:
- ChibiOS-gitmain
- ChibiOS-contrib
2014-10-11 04:59:57 -07:00
2014-10-19 10:31:18 -07:00
Make local clone of your fork
git clone git@github.com:username/ChibiOS-gitmain.git
2014-10-11 04:59:57 -07:00
2014-10-19 10:31:18 -07:00
Make local branch for your feature
2014-10-19 10:35:29 -07:00
```
2014-10-19 10:31:18 -07:00
cd ChibiOS-gitmain
git branch feature
git checkout feature
2014-10-19 10:35:29 -07:00
```
2014-10-19 10:31:18 -07:00
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.
2014-10-11 04:59:57 -07:00
Links:
2014-10-19 07:57:27 -07:00
https://help.github.com/
http://git-scm.com/
2014-10-11 04:59:57 -07:00
http://chibios.org/dokuwiki/doku.php?id=chibios:guides:style_guide