gpt4 book ai didi

git - 你能在 GIT 中同时设置你的用户名和真实姓名吗?

转载 作者:太空狗 更新时间:2023-10-29 14:25:46 30 4
gpt4 key购买 nike

当我登录到 bitbucket 时,我可以设置我的用户名、名字和姓氏。 Git 有所有这些选项还是只有用户名?

最佳答案

没有。请参阅 the docs 中的选项列表,特别是那些以 user.

为前缀的

user.email
Your email address to be recorded in any newly created commits. Can be overridden by the GIT_AUTHOR_EMAIL, GIT_COMMITTER_EMAIL, and EMAIL environment variables. See git-commit-tree[1].

user.name
Your full name to be recorded in any newly created commits. Can be overridden by the GIT_AUTHOR_NAME and GIT_COMMITTER_NAME environment variables. See git-commit-tree[1].

user.signingKey
If git-tag[1] or git-commit[1] is not selecting the key you want it to automatically when creating a signed tag or commit, you can override the default selection with this variable. This option is passed unchanged to gpg’s --local-user parameter, so you may specify a key using any method that gpg supports.

您只能设置一个名称。

关于git - 你能在 GIT 中同时设置你的用户名和真实姓名吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31314815/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com