Git: Difference between revisions
Jump to navigation
Jump to search
(update git instructions) |
(formatting) |
||
Line 10: | Line 10: | ||
To use the git repository: | To use the git repository: | ||
* Anonymous clone. By default, a clone now checks out the org.openembedded.dev branch. | * Anonymous clone. By default, a clone now checks out the org.openembedded.dev branch. | ||
** git clone git://git.openembedded.net/org.openembedded.dev | ** <pre>git clone git://git.openembedded.net/org.openembedded.dev</pre> | ||
* checkout a different branch: | * checkout a different branch: | ||
** git checkout --track -b <branch> origin/<branch> | ** <pre>git checkout --track -b <branch> origin/<branch></pre> | ||
* see other branches that are available: | * see other branches that are available: | ||
** git branch -r | ** <pre>git branch -r</pre> | ||
* Update your branch | * Update your branch | ||
** git pull | ** <pre>git pull</pre> | ||
and if your key is registered, push/pull from: | and if your key is registered, push/pull from: | ||
Line 35: | Line 35: | ||
* git diff origin/org.openembedded.dev openmoko.org/org.openmoko.asu.stable | * git diff origin/org.openembedded.dev openmoko.org/org.openmoko.asu.stable | ||
* git diff origin/org.openembedded.dev openmoko.org/org.openmoko.asu.stable classes | * git diff origin/org.openembedded.dev openmoko.org/org.openmoko.asu.stable classes | ||
* git checkout -b org.openmoko.asu.stable --track org.openmoko.asu.stable | * git checkout -b org.openmoko.asu.stable --track openmoko.org/org.openmoko.asu.stable | ||
= Monotone to Git Conversion Issues = | = Monotone to Git Conversion Issues = |
Revision as of 11:31, 2 October 2008
OpenEmbedded Git repository
Git repository that currently mirrors the main Monotone repository (test installation).
Web interfaces:
To use the git repository:
- Anonymous clone. By default, a clone now checks out the org.openembedded.dev branch.
git clone git://git.openembedded.net/org.openembedded.dev
- checkout a different branch:
git checkout --track -b <branch> origin/<branch>
- see other branches that are available:
git branch -r
- Update your branch
git pull
and if your key is registered, push/pull from:
ssh://gittrial@git.openembedded.net/org.openembedded.dev
Other Repositories of Interest
- http://git.openmoko.org/
- http://svn.o-hand.com/view/poky/
- svn co http://svn.o-hand.com/repos/poky/trunk poky
To add a branch mirroring the openmoko tree, do the following:
- git remote add openmoko.org git://git.openmoko.org/git/openmoko.git
- git fetch openmoko.org
- git branch -r
- gitk openmoko.org/org.openmoko.asu.stable
- git diff origin/org.openembedded.dev openmoko.org/org.openmoko.asu.stable
- git diff origin/org.openembedded.dev openmoko.org/org.openmoko.asu.stable classes
- git checkout -b org.openmoko.asu.stable --track openmoko.org/org.openmoko.asu.stable
Monotone to Git Conversion Issues
Why Git
Why are we switching:
- better support for branching and merging (this is where git shines)
- much faster
- much larger user base -- many people doing OE work are already using git for kernel work
Mail list discussions on the topic:
- http://thread.gmane.org/gmane.comp.handhelds.openembedded/8657/focus=9085
- http://thread.gmane.org/gmane.comp.handhelds.openembedded/17795/focus=17844
- http://thread.gmane.org/gmane.comp.handhelds.openembedded/18091/focus=18097
- http://thread.gmane.org/gmane.comp.handhelds.openembedded/17868/focus=17892
- http://thread.gmane.org/gmane.comp.handhelds.openembedded/18959/focus=18983