5
When I’m using Github for Desktop, and I pull or push, the App just tells me that a file is in conflict and nothing happens. but when I use gitbash, it automatically starts a merge.
I’d like you to always make one git pull
or git push
on gitbash, the system just made an error stating the file is in conflict and stopped the process, similar to Github for Desktop.
I prefer that whenever a file is in conflict, the process is, copy the developer changes to the note block, clear all changes (git checkout -- .
, ...), perform a new git pull, pass developer changes to the new file, and try a git add / git commit / git push
.
In an inescapable way, whenever a developer makes a git push on gitbash, a merge automatically appears, he always ends up eating, and always breaks the project.
My question is: do you have any commands for git pull and git push that prevent merge, and if there is a conflict, don’t download and don’t send the changes to origin?
Example: git pull --strategy="abort case conflict"
?
Try
git pull --ff-only
.– StatelessDev
Maybe I can help you: How to Prevent an automerge using git?
– Marconi