Changes between Version 5 and Version 6 of GitUsage
- Timestamp:
- 12/05/10 13:01:30 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitUsage
v5 v6 43 43 }}} 44 44 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.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 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').