I accidentally forgot to commit my changes, then pushed and then did a git reset --hard origin/stable
-
I accidentally forgot to commit my changes, then pushed and then did a git reset --hard origin/stable
Luckily I could still find all the blobs in git fsck --lost-found, but shoot... this was enough to give me a heart attack at first. I mindlessly just did my muscle-memory routine of committing, pushing and resetting... -
I accidentally forgot to commit my changes, then pushed and then did a git reset --hard origin/stable
Luckily I could still find all the blobs in git fsck --lost-found, but shoot... this was enough to give me a heart attack at first. I mindlessly just did my muscle-memory routine of committing, pushing and resetting...@foxhkron@cybre.club
why do you hard reset after pushing?
-
@foxhkron@cybre.club
why do you hard reset after pushing?
@Johann150@genau.qwertqwefsday.eu I usually do that to be sure that my local branch is completely in sync again with the remote branch and that I don’t have any changes left I didn’t want to commit
-
@Johann150@genau.qwertqwefsday.eu I usually do that to be sure that my local branch is completely in sync again with the remote branch and that I don’t have any changes left I didn’t want to commit
@foxhkron@cybre.club
still find that a bit strange to do, at least by default... maybe thats because i often do several changes before remembering to commit, and then split the changes into separate commits afterwards