Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mungoman2
on Sept 9, 2016
|
parent
|
context
|
favorite
| on:
Some bad Git situations and how I got myself out o...
Or use git branch -m to rename master to something else, then checkout master anew.
mmun
on Sept 9, 2016
|
next
[–]
Or this variant
git checkout -b actual-branch git branch -f master origin/master
OskarS
on Sept 9, 2016
|
prev
[–]
That's clever, I'll remember that. But don't you lose all tracking information if you do that?
phaemon
on Sept 9, 2016
|
parent
[–]
What tracking information are you referring to?
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: