Timeline for answer to How can I rename a local Git branch? by Milind Anantwar
Current License: CC BY-SA 4.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 2, 2021 at 19:54 | review | Suggested edits | |||
| Jul 3, 2021 at 8:16 | |||||
| Jun 18, 2020 at 23:52 | comment | added | Chris Halcrow |
@Milind Anantwar, what does it mean to "check that the new branch is pointing to it's own ref"? And could you please explain how git branch --unset-upstream resolves the unsynchronised condition(s) to which you're referring?
|
|
| Jun 18, 2020 at 23:48 | comment | added | Chris Halcrow |
To explain the steps: 1 = switch to branch locally, 2 = 'move' i.e. 'rename' branch locally (-m), 3 = push 'nothing' to the old branch destination on the remote (i.e. delete the reference to the branch on the remote) - left side of a colon is 'source', right side is 'destination', 4 = push a reference (pointer) to the new branch, to the remote
|
|
| Mar 23, 2019 at 11:10 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Active reading. Applied some formatting (as a result the diff looks much more extensive than it really is - use view "side-by-side markdown" to compare).
|
| Jan 12, 2017 at 9:28 | history | edited | Milind Anantwar | CC BY-SA 3.0 |
added 264 characters in body
|
| Jun 2, 2015 at 9:00 | history | edited | nickgrim | CC BY-SA 3.0 |
You're renaming the branch, not the repository.
|
| Apr 15, 2015 at 12:50 | history | answered | Milind Anantwar | CC BY-SA 3.0 |