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

Both of those sound totally reasonable to me! I don't know of any better ways to do that stuff and there's nothing risky about it.


One thing that is risky about git reset --hard is that any non-committed changes are lost. That has bitten me a few times.


My controversial opinion is that git needs some kind of gui that help you keep track of the state of the repo


A very effective solution for that is a well-configured shell. IF you summarize the state of the repo in the prompt, it is always visible while typing a command.


Completely reasonable if you do on your local branch, or if you have a convention that remote branches starting with your name or something are yours only.

If you rewrite history on master… well… completely unreasonable.




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

Search: