Changes between Version 31 and Version 32 of UsingGit


Ignore:
Timestamp:
Jul 8, 2016, 4:47:01 PM (8 years ago)
Author:
Peter Bennett
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsingGit

    v31 v32  
    8585|| svn revert -R (for pristine index and working copy) || git reset --hard || applies to entire tree so no filename or directory allowed ||
    8686
     87=== Useful git commands ===
     88
    8789To cherry pick a commit from master to fixes/0.27 (this automatically commits to your local branch):
    8890{{{
    8991git checkout fixes/0.27; git cherry-pick -x {commitref} (retrieve commitref hash from git log, e-mail or github history)
    9092}}}
     93Options 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
    9199To see log for specific branch
    92100{{{
     
    105113git commit --author "Full Name <email@address>" -s
    106114}}}
     115When committing a change that closes a ticket, add this to the commit comment, to automatically close the ticket:
     116{{{
     117Fixes #123456
     118}}}
     119
    107120Also, github has a wealth of good information.
    108121
    109122== MythTV Git Repositories ==
    110123
    111 ||= Name =||= mirrored on GitHub =||
     124||= Name =||= mirrored on !GitHub =||
    112125||buildbot-config||no||
    113126||extras||yes||