Changes between Version 31 and Version 32 of UsingGit
- Timestamp:
- Jul 8, 2016, 4:47:01 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsingGit
v31 v32 85 85 || svn revert -R (for pristine index and working copy) || git reset --hard || applies to entire tree so no filename or directory allowed || 86 86 87 === Useful git commands === 88 87 89 To cherry pick a commit from master to fixes/0.27 (this automatically commits to your local branch): 88 90 {{{ 89 91 git checkout fixes/0.27; git cherry-pick -x {commitref} (retrieve commitref hash from git log, e-mail or github history) 90 92 }}} 93 Options to use for cherry-pick 94 * -s to signoff another person's fix with your name 95 * -x append a comment line that says "(cherry picked from commit ...)" 96 * -e to edit comment to add ticket number (e.g. Fixes #12345, see below) 97 * -n to leave out commit so you can combine multiple cherry-picks into 1 commit. 98 91 99 To see log for specific branch 92 100 {{{ … … 105 113 git commit --author "Full Name <email@address>" -s 106 114 }}} 115 When committing a change that closes a ticket, add this to the commit comment, to automatically close the ticket: 116 {{{ 117 Fixes #123456 118 }}} 119 107 120 Also, github has a wealth of good information. 108 121 109 122 == MythTV Git Repositories == 110 123 111 ||= Name =||= mirrored on GitHub =||124 ||= Name =||= mirrored on !GitHub =|| 112 125 ||buildbot-config||no|| 113 126 ||extras||yes||