Pushing -f to Own Branch may be dangerous

in git •  4 years ago 

Here is what happened:

  1. I forked a repro
  2. I made some changes and push to develop branch
  3. I created a PR to merge to original repro:develop branch
  4. I want to undo the changes in my own develop branch thus git reset --hard and git push -f
  5. the PR i created earlier was closed automatically because of 'undoing the changes'

image.png

The correct way is always checkout a feature/bug-fix branch

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Thank you for reading ^^^^^^^^^^^^^^^

NEW! Following my Trail (Upvote or/and Downvote)

Follow me for topics of Algorithms, Blockchain and Cloud.
I am @justyy - a Steem Witness
https://steemyy.com

My contributions

Delegation Service

  1. Voting Algorithm Updated to Favor those High Delegations!
  • Delegate 1000 to justyy: Link
  • Delegate 5000 to justyy: Link
  • Delegate 10000 to justyy: Link

Support me

If you like my work, please:

  1. Delegate SP: https://steemyy.com/sp-delegate-form/?delegatee=justyy
  2. Vote @justyy as Witness: https://steemyy.com/witness-voting/?witness=justyy&action=approve
  3. Set @justyy as Proxy: https://steemyy.com/witness-voting/?witness=justyy&action=proxy
    Alternatively, you can vote witness or set proxy here: https://steemit.com/~witnesses

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

請像我一樣幫忙

[WhereIn Android] (http://www.wherein.io)