DEV Community

Fixing Mistakes with git

Jaakko Kangasharju on July 13, 2018

Sometimes, we all write code that shouldn't become part of the code base. Or at least shouldn't become part of it yet. Git has a number of ways to ...
Collapse
 
broonix profile image
Brooks

Another tip: Avoid git push --force and use git push --force-with-lease.

Collapse
 
jsn1nj4 profile image
Elliot Derhay • Edited

Be careful when using a caret ^ instead of a tilde ~ next to commit pointers.

paulboxley.com/blog/2011/06/git-ca...