Git reset single file in feature branch to be the same as in master/main [duplicate] October 2, 2023 by Tarik If you want to revert the file to its state in master: git checkout origin/master [filename]