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

Only works if you've recently fetched origin, otherwise it'll be a challenge sorting out what the previous HEAD was.


--force-with-lease is almost always the flag you ought to use instead.

"--force-with-lease alone, without specifying the details, will protect all remote refs that are going to be updated by requiring their current value to be the same as the remote-tracking branch we have for them."




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

Search: