致命:/home/trx/.gitconfig中的配置文件行1错误 [英] fatal: bad config file line 1 in /home/trx/.gitconfig

查看:818
本文介绍了致命:/home/trx/.gitconfig中的配置文件行1错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经被问了一百万次,但是我的〜/ .gitconfig只包含两行,这些字符在本教程中是正确的。

I know this question has been asked a million times, but my ~/.gitconfig consists of only two lines, that are character correct with the tutorial.

git config --global user.name "trx"
git config --global user.email chazx@live.com

这里可能是什么问题?

What could be the issue here?

推荐答案

这是我的〜/ .gitconfig:

This is my ~/.gitconfig:

[user]
    name = Luigi R. Viggiano
    email = luigi.viggiano@...
[color]
    ui = true
[merge]
    tool = p4merge
[diff]
    tool = p4merge
[push]
    default = simple

您的〜/。 gitconfig 的格式不正确。

您不需要输入命令:

You don't need to put the commands:

git config --global user.name "trx"
git config --global user.email chazx@live.com

在文件中...您需要在终端键入它们湖

in a file... you need to type them at the terminal.

删除〜/ .gitconfig 并使用 git config 命令在终端,如教程中所述。

Delete your ~/.gitconfig and manipulate it using the git config command at the terminal, as explained in the tutorial.

这篇关于致命:/home/trx/.gitconfig中的配置文件行1错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆