You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are conflicts, we should offer to open the conflict resolution tool.
Reacted by Yaakov Ellis, Nikita Utkin, Vijay Nirmal, fregante, Milad Faridnia, Joe Bush, Aivar Annamaa, Michal Kmeťka, Baptiste Billet, Silvia Gutiérrez and 4 more
In other tools (SourceTree being the one I am most familiar with) if there are merge conflicts they are listed, you can right click on them, have quick resolution options (resolve using mine/theirs) or option to open in 3rd party diff application (Winmerge, Beyond Compare, etc). When it is resolved there go back to the main screen and it cleans itself up. Might be easier to implement this way rather than having to do up your own diff/merge visualization.
Reacted by Milad Faridnia, Robbie Cargill, medifle, Amir Ebrahimi, nolabeard and Joachim Marder
One of the big open questions here is, what do we encourage users to do if they don't have a merge tool configured?
If they don't have one configured, we could look at the output of git mergetool --tool-help as that tells us what they have installed:
$ git mergetool --tool-help
'git mergetool --tool=<tool>' may be set to one of the following:
emerge
opendiff
vimdiff
vimdiff2
vimdiff3
user-defined:
sourcetree.cmd /Users/shiftkey/Applications/SourceTree.app/Contents/Resources/opendiff-w.sh "$LOCAL" "$REMOTE" -ancestor "$BASE" -merge "$MERGED"
The following tools are valid, but not currently available:
araxis
bc
bc3
codecompare
deltawalker
diffmerge
diffuse
ecmerge
examdiff
gvimdiff
gvimdiff2
gvimdiff3
kdiff3
meld
p4merge
tkdiff
tortoisemerge
winmerge
xxdiff
Some of the tools listed above only work in a windowed
environment. If run in a terminal-only session, they will fail.
We could then set this as their configured merge tool. The downside to this is that there's lots of CLI tools, and nicer experiences like Atom probably won't be detected...
I'm trying to help my non-technical designers get set up with an easy to use workflow. It would be really nice if there was some level of support baked into Github Desktop for basic kinds of conflicts.
Introducing yet another tool for them to learn would be more difficult from a training perspective, and often times dedicated conflict resolutions try to be very powerful (which has been a turn off for other git GUIs that try to support every possible git feature - Github Desktop has been wonderfully simple in this regard).
Can we at least get a simple Resolve Mine / Resolve Theirs right click menu for simple conflict resolution? We are trying to have the artists on our team use Github Desktop exclusively, but the lack of this feature means it's functionally unusable for them, since they would still need SourceTree or another tool installed to handle any conflicts that arise.
Reacted by Jed Fox, Michael Scott Asato Cuthbert and GlebModonov-azur
Since we're tracking this in #5400 I'm going to close this in favor of that as it's basically a duplicate. We completely agree that improving this flow will be helpful for users, just don't want to preliminarily specify the exact solution (and there are some good ideas in this thread that we'll be sure to reference).
Activity
joshaber commentedon Jan 26, 2017
How do we imagine this working? Generally the merge tool is launched once for all conflicted files, though it can be launched per file.
yellis commentedon Jun 8, 2017
In other tools (SourceTree being the one I am most familiar with) if there are merge conflicts they are listed, you can right click on them, have quick resolution options (resolve using mine/theirs) or option to open in 3rd party diff application (Winmerge, Beyond Compare, etc). When it is resolved there go back to the main screen and it cleans itself up. Might be easier to implement this way rather than having to do up your own diff/merge visualization.
3 remaining items
shiftkey commentedon Sep 21, 2017
If they don't have one configured, we could look at the output of
git mergetool --tool-helpas that tells us what they have installed:We could then set this as their configured merge tool. The downside to this is that there's lots of CLI tools, and nicer experiences like Atom probably won't be detected...
joshaber commentedon Sep 22, 2017
Yeah, that's the catch to using
--tool-help. It's really command line-centric 😞 I doubt most of our users are gonna want vimdiff.fenduru commentedon Oct 11, 2017
I'm trying to help my non-technical designers get set up with an easy to use workflow. It would be really nice if there was some level of support baked into Github Desktop for basic kinds of conflicts.
Introducing yet another tool for them to learn would be more difficult from a training perspective, and often times dedicated conflict resolutions try to be very powerful (which has been a turn off for other git GUIs that try to support every possible git feature - Github Desktop has been wonderfully simple in this regard).
shiftkey commentedon Oct 12, 2017
@fenduru we've called out better conflict resolution on our roadmap, so stay tuned for that as we get closer to planning what that looks like.
jonagillag commentedon Aug 17, 2018
Can we at least get a simple Resolve Mine / Resolve Theirs right click menu for simple conflict resolution? We are trying to have the artists on our team use Github Desktop exclusively, but the lack of this feature means it's functionally unusable for them, since they would still need SourceTree or another tool installed to handle any conflicts that arise.
shiftkey commentedon Aug 17, 2018
@jonagillag I think you'll be interested in following along with #5400
billygriffin commentedon Aug 29, 2018
Since we're tracking this in #5400 I'm going to close this in favor of that as it's basically a duplicate. We completely agree that improving this flow will be helpful for users, just don't want to preliminarily specify the exact solution (and there are some good ideas in this thread that we'll be sure to reference).