How to force push git branches without the --force flag
Written by Stefan Judis
- Published at
- Updated at
- Reading time
Today I learned about an alternative syntax to force push git branches.
git push --force origin feature-a git push -f origin feature-a git push origin +feature-a
On one hand, the
+ saves some characters and somehow feels less scary to me, but on the other hand is force pushing only a single character typo away. That's scary!