Changes between Version 25 and Version 26 of UsingGit
- Timestamp:
- 04/10/12 11:41:43 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsingGit
v25 v26 1 1 == Using git with MythTV == 2 2 3 You will need to create a github account, and link your @mythtv.org email address to it (if a MythTV developer). If you aren't a part of the development team, you can still create a github account and fork the repository into your account, giving pull requests later to get your changes incorporated. 3 To work with MythTV source code, you may either create a read-only repository (allowing you to build MythTV and make local changes, only): 4 4 5 For development with a github account, clone the repository with: 5 {{{ 6 git clone git://github.com/MythTV/mythtv.git 7 }}} 8 9 Or you may create a github account and fork the repository into your account, allowing you to push your changes to your fork (for others to see/use) and to provide pull requests in tickets to get your changes incorporated: 6 10 7 11 {{{ … … 9 13 }}} 10 14 11 12 For read-only access, use:13 14 {{{15 git clone git://github.com/MythTV/mythtv.git16 }}}17 18 15 To switch to another branch: 19 16 20 17 {{{ 21 git checkout fixes/0.2 418 git checkout fixes/0.25 22 19 }}} 23 20 … … 70 67 || svn diff || git diff || show differences since last stage commit || 71 68 || svn stat || git status || || 72 || svn commit || git commit / git push || in git, git commit commits locally, git push pushes to the upstream repo. Additionally, changes must be staged before committing. ||69 || svn commit || git commit / git push || in git, git commit commits locally, git push pushes to the upstream repo. Additionally, changes must be staged before committing. || 73 70 || ---- || git add -i / git add -p || stage commits || 74 71 || svn update || git pull || technically, this is two steps combined (git fetch, git merge) git pull --rebase does a rebase instead of a merge || … … 82 79 || svn revert -R (for pristine index and working copy) || git reset --hard || applies to entire tree so no filename or directory allowed || 83 80 84 To cherry pick a commit from master to fixes/0.2 4(this automatically commits to your local branch):81 To cherry pick a commit from master to fixes/0.25 (this automatically commits to your local branch): 85 82 {{{ 86 git checkout fixes/0.2 4; git cherry-pick {commitref} (retrieve commitref hash from git log, e-mail or github history)83 git checkout fixes/0.25; git cherry-pick {commitref} (retrieve commitref hash from git log, e-mail or github history) 87 84 }}} 88 85 To see log for specific branch
