Changes between Version 12 and Version 13 of UsingGit


Ignore:
Timestamp:
12/09/10 21:21:06 (15 years ago)
Author:
Janne Grunau
Comment:

add useful config options for git push

Legend:

Unmodified
Added
Removed
Modified
  • UsingGit

    v12 v13  
    3535Please use your real name and a real email address.  If you are on the MythTV development team, please use the assigned canonical @mythtv.org email address.  This will be attached to each commit you make, and is needed for legality reasons (i.e. to clearly denote the contributors, which can be a life-saver if we have licensing issues later)
    3636
     37The default git push behaviour is inconvenient or dangerous. Without options it will push all matching branches (branches with the same name in the remote and local repository).
     38
     39{{{
     40git config --local --add push.default nothing
     41git config --local --add push.default tracking
     42}}}
     43
     44The first prevents any unwanted changes. tracking pushes the current branch to it's remote tracking branch. That's useful if local branches don't have exactly the same name as the remote branch. mythtv-rec vs. dkristjansson/mythtv-rec for example.
     45
     46git push -n should always verified before real pushing.
     47
    3748=== git for svn users ===
    3849