on 2023 Aug 17 2:36 PM
Hi,
BAS doesn't support "git rebase -i" since it prompts
hint: Waiting for your editor to close the file... code --wait: 1: code: not found
error: There was a problem with the editor 'code --wait'.
The command code --version prompts
bash: code: command not found
What can I do in order to get a proper editor ? (either vi or vim or whatever works)
I tried the classic
git config --global core.editor 'vim'
but it still rely on "code"
Regards,
Yann
Request clarification before answering.
Hi @yannmiquel,
Edit: The original answer seems to have only worked temporarily for some reason. What works for the duration of the terminal session at least seems to be running "export GIT_EDITOR=vim" to bring up vim for editing commit messages.
---
Original answer:
What worked for me was to disable VS Code as terminal git editor. Git then just warns me about merge conflicts and asks to resolve them manually, which is fine for me because I'll do that in VS Code / BAS Source Control view anyway.
Warning: I was not able to make VS Code / BAS open any editor though, even after re-enabling that setting.
In BAS:
On merge conflicts git now only shows this message:
Auto-merging test.txt
CONFLICT (content): Merge conflict in test.txt
Automatic merge failed; fix conflicts and then commit the result.
Kind regards,
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still not resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still not resolved 😞
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
41 | |
15 | |
10 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.