gitdiffbeyondcomparedifftool

how to end git difftool session (beyond compare )?


I'm using the command git difftool --tool=bc3, git opens the first file with beyond compare and wait for me to close it, than it opens the next file and it go over and over again.

How can I force git to close this session?

Thanks.


Solution

  • You need to kill the git process to stop it from launching diffs.

    There are several methods you can use to do this.

    1. Click X to close the shell window running git.
    2. Hit Control+C to kill the git process in the shell running git.
    3. Launch a new shell, use ps to find git's process id, then use the kill command to terminate the process.

      user@machine:~$ ps x | grep "git difftool"
      23879 pts/0    S+     0:00 git difftool
      23935 pts/8    S+     0:00 grep --color=auto git difftool
      user@machine:~$ kill -9 23879
      

    See also the earlier question: How do you cancel an external git diff?