Striving to become a master Go/Cloud developer; Father ๐จโ๐งโ๐ฆ; ๐ค/((Full Stack Web|Unity3D) + Developer)/g; Science supporter ๐ฉโ๐ฌ; https://coder.today
I use the rebase feature every day many times because do not like mess in my git repositories. Of course when I work with other people i don't use the force flag.
Striving to become a master Go/Cloud developer; Father ๐จโ๐งโ๐ฆ; ๐ค/((Full Stack Web|Unity3D) + Developer)/g; Science supporter ๐ฉโ๐ฌ; https://coder.today
You are using the force flag everyday, OMG I hope we will not be co-workers ...anytime ๐
I use the rebase feature every day many times because do not like mess in my git repositories. Of course when I work with other people i don't use the force flag.
It depends on the circumstances. If he is developing a branch alone and needs to correct his PR and push again for review, what would you do?
If you want to remove the history you don't have much of a choice, it was a joke.
I would use
git merge squash
and instead of --force flag I would use--force-with-lease
to avoid possible data loss.