WillSullivan / idownvotedbecause

I downvoted because...
http://idownvotedbecau.se
MIT License
265 stars 66 forks source link

"git push -f" without due diligence #93

Open lassevk opened 6 years ago

lassevk commented 6 years ago

I believe "git push -f" is bad advice unless enough due diligence has been done to verify that this won't cause bigger problems. I downvote answers that jump to this command without such work.

This is a pet peeve of mine, people grab "git push -f" far too quickly to solve any number of problems. Yes, in most cases it will involve force push, but only after verifying that this won't cause bigger problems.

I've seen numerous questions like "I used git push -f --mirror and now I lost branches and commit", "I used git push -f and now my colleague is mad at me" and similar.

"git push -f" requires more work before this advice can be given and I for one downvote answers that just jump to this command before verifying anything of the sorts.

WillSullivan commented 6 years ago

I dunno... this is a bit... specific. Let's see if other people are interested in adding a page for this issue. I have no idea how wide spread it is.

sonic1981 commented 6 years ago

The correct response to this kind of thing is to point the person suggesting this to a question on SO that explains why they shouldn't do this or if it's a question, vote to close as a duplicate.