4

Git 配置默认文本编辑器 - 搞搞震

 3 years ago
source link: https://www.wujingquan.com/posts/82f3e81e.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Git 配置默认文本编辑器

假设编辑器为 VS Code ,路径为 C:/Program Files/Microsoft VS Code/Code.exe

git config --global core.editor "C:/'Program Files'/'Microsoft VS Code'/Code.exe"
// 删除多个编辑器
git config --unset --global core.editor

// 删除指定的某个编辑器
git config --unset --global core.editor="C:/'Program Files'/'Microsoft VS Code'/Code.exe"

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK