Git Commit changes before merge
You can't merge with local modifications. Git protects you from losing potentially important changes.
You have three options:
Commit the change using
Stash it
Stashing acts as a stack, where you can push changes, and you pop them in reverse order.
To stash, type
Do the merge, and then pull the stash:
Discard the local changes
or
Or: Discard local changes for a specific file using git checkout filename
Last updated