DEV Community

Discussion on: 20 Git Commands Every Developer Should Know

Collapse
 
fjones profile image
FJones

Don't use the --force flag, even in that situation. Use --force-with-lease for the rare case where you do end up with a remote change during the rebase.

Collapse
 
jessekphillips profile image
Jesse Phillips

That should be named --nudge

Or change to --force --force when you really mean it.

Thread Thread
 
krishnaagarwal profile image
Krishna Agarwal

Yes
Right
Thanks for sharing

Collapse
 
krishnaagarwal profile image
Krishna Agarwal

You are absolutely right.
We should avoid using force.

But thanks for your suggestions 👍