In Sourctree I opened the terminal and attempted to do
git rebase -i origin/main~4 main
howver it gave me the error
hint: Waiting for your editor to close the file... C:\Program Files\Git\git-bash.exe: line 1: C:Program: command not found error: There was a problem with the editor 'C:\Program Files\Git\git-bash.exe'.
which originally was for VS Code:
hint: Waiting for your editor to close the file... "C:\Users\Siegfried\AppData\Local\Programs\Microsoft VS Code\bin\code" --wait: line 1: C:\Users\Siegfried\AppData\Local\Programs\Microsoft VS Code\bin\code: No such file or directory error: There was a problem with the editor '"C:\Users\Siegfried\AppData\Local\Programs\Microsoft VS Code\bin\code" --wait
, but I don’t have VS Code, so I changed the editor by using
git config --global core.editor git-bash
git config --system core.editor "'C:\Program Files\Git\git-bash.exe' -c 'vi'"
.
Also tried using $ git config --global core.editor "git-bash --wait"
and that doesn’t work.
Created an environment variable too just to see if that would fix it.
howeever it’s still giving me the error, very new to Git so sorry. Thank you for replying.