When I'm using GitHub for Desktop, and do a pull or push, the App just informs you that a file is in conflict and nothing happens. but when I use gitbash, it automatically starts a merge.
I would like every time I make a git pull
or git push
in gitbash, the system just gives an error informing the file that is in conflict and stops 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 notepad, clear all changes ( git checkout -- .
, ...), perform a new git pull, the developer changes to the new file, and try a git add / git commit / git push
.
Inescapably, whenever a developer does a git push in gitbash, a merge automatically pops up, it always ends up committing, and it always breaks the project.
My question is: do you have a command for git pull and git push that prevents the merge, and if there is a conflict, do not download or send the changes to the origin?
Example: git pull --strategy="abort case conflict"
?