Created
May 10, 2022 11:52
-
-
Save tiendatleo/3c4d9204a629ad92a0a7b36cde02419d to your computer and use it in GitHub Desktop.
[Git] Commands for ignoring a file when merge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git merge --no-ff --no-commit <merge-branch> | |
git reset HEAD myfile.txt | |
git checkout -- myfile.txt | |
git commit -m "merged <merge-branch>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment