cd到home目录,然后执行
ubuntu@ubuntu12:~$ vi .gitconfig
1 [user]
2 name = username
3 email = username@qq.com
4 [diff]
5 tool = bc3
6 [difftool]
7 prompt = false
8 [merge]
9 tool = bc3
10 [mergetool]
11 prompt = false