Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or use git branch -m to rename master to something else, then checkout master anew.


Or this variant

  git checkout -b actual-branch
  git branch -f master origin/master


That's clever, I'll remember that. But don't you lose all tracking information if you do that?


What tracking information are you referring to?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: