Changes between Version 5 and Version 6 of GitUsage


Ignore:
Timestamp:
12/05/10 13:01:30 (8 years ago)
Author:
magnate
Comment:

added use of git branch -m

Legend:

Unmodified
Added
Removed
Modified
  • GitUsage

    v5 v6  
    4343}}} 
    4444 
    45 That creates a new copy of the branch you're tracking, adds your commit without recursing, and pushes it upstream as if you'd done it right in the first place. All that's left is to tidy up your local repo: delete both the old messed-up branch with the right name and the new branch with the wrong name, and re-create the properly-named branch to track the remote one. 
     45That creates a new copy of the branch you're tracking, adds your commit without recursing, and pushes it upstream as if you'd done it right in the first place. All that's left is to tidy up your local repo: delete the old messed-up branch ('git branch -D branchname') and rename the new one to match the one you're tracking ('git branch -m newbranch branchname').