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

> (...) and then force push it.

I don't think this is a good example. Forcing a push means that the repository will lose commits, but you still keep yours in your local branch. This means the repo is not broken, but at best you have a perfectly valid local repository that just happens to be out of sync.

If you rename your local branch and set it to not track the remote one, and afterwards you fetch changes from the remote branch, then you're done.



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

Search: