I'm fairly new to Git and I'm struggling with an error.
I have a local copy of the code that is in prod, and made some changes (after a git pull). After making the local changes, I did:
git add .
git commit -m
git push
Then I logged into the prod server, and ran git pull.
I got the following error:
-> origin/master
error: Your local changes to the following files would be overwritten by merge:
Please, commit your changes or stash them before you can merge.
error: The following untracked working tree files would be overwritten by merge:
I'm not sure how it would affect my code if I stash the changes or made a commit. What should I do?