Git tips: Difference between revisions
Jump to navigation
Jump to search
m (remove Category:Software projects , it's so vague as to be meaningless) |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 42: | Line 42: | ||
git-clone git+ssh://dev.laptop.org/git/projects/tamtam |
git-clone git+ssh://dev.laptop.org/git/projects/tamtam |
||
== |
== See also == |
||
*The general git user manual can be found here: [[http://www.kernel.org/pub/software/scm/git/docs/user-manual.html git user-manual]] |
|||
{{:Git/See also}} |
|||
*[[git]] |
|||
* Some (generic, not all applicable to OLPC/SugarLabs' git trees) git workflow info: [http://kerneltrap.org/Linux/Git_Management Linus' recommendation] |
|||
[[Category:Git]] |
[[Category:Git]] |
||
Line 51: | Line 50: | ||
[[Category:Developers]] |
[[Category:Developers]] |
||
[[Category:Software development]] |
[[Category:Software development]] |
||
[[Category:Sugar]] |
Latest revision as of 04:55, 2 July 2014
For Developers
Working on branches
Create a remote branch
git clone git+ssh://dev.laptop.org/git/sugar cd sugar git branch update-1 git push origin update-1
Work on a remote branch
git clone git+ssh://dev.laptop.org/git/sugar git checkout --track -b update-1 origin/update-1 git pull
You can now use commit, push and pull as usual.
Apply changes from master
git-cherry-pick <commit-id> git push
Reverting changes
When you mess up a file and want it back to what it was, cd into the directory and:
git checkout HEAD -- gridwidget.py
To remove uncommitted changes and reset the project to HEAD:
get reset --hard HEAD
When you want an activity that sugar-jhbuild does not bring down
Read only:
git-clone git://dev.laptop.org/projects/tamtam
If you have commit access:
git-clone git+ssh://dev.laptop.org/git/projects/tamtam
See also
- Git
- Using a central git tree
- Importing your project
- Creating a personal git tree
- Git tips
- Project hosting
- git home page
- Read more about git on Wikipedia
- Freedesktop Git
- Guide to git for SVN users