>PROBLEM
You’ve made a pull and you got conflicts.
>SOLUTION
An easy alternative without having to merge files.
- Take note of those files that has conflict issues.
- Move the conflicting files to a temporary folder.
- Commit again.
git commit -am “solving merge conflicts preserving mine” - Reset the state to the previous one, before the pull command.
git reset –hard HEAD - Perform pull again:
git pull - Move back the files from the temporary folder to the project folder.
- Commit again:
git commit -am “solved merge conflicts preserving mine” - Push to remote:
git push
Brazilian system analyst graduated by UNESA (University Estácio de Sá – Rio de Janeiro). Geek by heart.