新路程------git 配置vim作为提交编辑器

来源:互联网 发布:淘宝格子铺是什么 编辑:程序博客网 时间:2024/05/17 07:01

  在git clone下来的根目录下进去.git目录

然后打开config文件

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
        editor=vim   加入这行即可
[remote "origin"]
url = http://192.168.10.37/TB-1WH/kernel.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "TB-1WH-DVT"]
remote = http://192.168.10.37/TB-1WH/kernel.git
merge = refs/heads/TB-1WH-DVT
[remote "TB-1WH-DVT"]
url = http://192.168.10.37/will/TB-1WH.git
fetch = +refs/heads/*:refs/remotes/TB-1WH-DVT/*

原创粉丝点击