How do I force git to checkout the master branch and remove carriage returns after I’ve normalized files using the “text” attribute? December 2, 2022 by Tarik Ah ah! Checkout the previous commit, then checkout the master. git checkout HEAD^ git checkout -f master