If are using VS code, you can Right click on the file -> Apply Changes option. This will apply the changes of the file to your current working branch.