git-config

    5热度

    1回答

    有没有办法全局配置git不自动生成用户的电子邮件,如果没有设置和中止提交,而不是? $ git commit -m "test" [master (root-commit) 71c3e2e] test Committer: unknown <[email protected]> Your name and email address were configured automatically

    3热度

    3回答

    要保持所有配置文件同步,我有一个Github repository以及所有设置。虽然这在大多数情况下运行良好,但某些应用程序在不同机器上具有不同的版本。 所以,现在我想知道...有什么办法可以设置Git全局配置设置,如this one(这会导致我的笔记本电脑发出警告),而不会在旧Git版本的不同机器上导致错误? 一个选项可能会打包git push命令,以便在支持时添加标志,但看起来像是黑客。

    18热度

    4回答

    我在Windows上使用Git,在公司网络上我使用基本身份验证的HTTP代理。出站SSH不起作用,所以我必须通过代理使用HTTPS。 我知道如何使用git config http.proxy将设置配置为http://[username]:[password]@[proxy]:[port]。 但是,特别是因为这是一台共享机器,我宁愿不将我的密码存储在我的.gitconfig中。另外,使用git co

    2热度

    2回答

    使用git config user.email "[email protected]"在global配置文件中设置用户电子邮件。 使用git config --global user.email "[email protected]"或git config --local user.email "[email protected]"(从回购中)抛出: "error: only one config

    2热度

    1回答

    我有三个git配置文件。其中一个名为.gitconfig,包含我的git设置的90%。常见的平台不可知的设置在这里。另一个名为.gitconfig-windows,并且包含Git的Windows设置(Notepad ++作为我的编辑器,例如,它不会在Linux上存在)。显然,我也有一个用于Linux平台的.gitconfig-linux。 现在,我有我的.gitconfig文件的顶部如下: [in

    2热度

    1回答

    很长一段时间,我在我的别名下面的别名文件: ignore=!([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore 这不是原来的我了,如果你搜索它,你会看到很多地方。然而,最近我开始对别名有一个奇怪的问题。我忽略的任何东西都放在.gitignore文件中并放在同一行(仅限一个空格)。 我做了一些调试,发现真正发生的事情是

    -4热度

    1回答

    我已经在Ubuntu中创建了几个仓库,但是当我做: ~/gittest1 ~/gittest2 ~/gittest3 vim ~/.gitconfig 我看到: user.name = Greatest Programmer user.email = [email protected] color.diff = auto color.status = auto color.br

    6热度

    1回答

    让说我有一个这样的别名在我的.gitconfig是指一个别名: alias.showlog = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' ,现在我希望有一个类似的别名,就像这样: alias.sl = sh

    2热度

    1回答

    我在我的gitconfig以下两个区块与地方的<placeholders>真实信息: [github] user = <name> token = <token> email = <email address> [github "user"] user = <name> token = <token> email = <email ad

    2热度

    1回答

    我想设置trustExitCode为false,并keepTemporaries为true,但它不工作...我不underestand原因。这里是我的~/.gitconfig: [merge] conflictstyle = diff3 tool = p4merge [mergetool] keepTemporaries = true keepBa