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.
You need to kill the git process to stop it from launching diffs.
There are several methods you can use to do this.
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?