git 用户信息问题
不确定这对程序员或其他交易所是否会更好,但这里是:
我计划在我的第一个项目中使用 git 和 github,并且有一些提交者用户信息问题。
当我设置我的全局用户名时,我应该使用我的全名还是我的 github 用户名,或者甚至一个然后另一个,中间加一个破折号之类的?我真的不知道根据我的选择他们会看到什么。我并不担心人们知道我是谁,只是想知道它是如何运作的。
我应该为其设置一个电子邮件吗?该电子邮件地址对网络爬虫等的可访问性如何,或者我是否应该担心这一点?这是一个gmail地址,所以我正在考虑使用+命令让gmail自动将其变成自己的标签(这就是它的工作原理,对吧?)。我可能会做 [email protected] 或 [email protected] 因为它有点短。
总的来说,我对 git 和 VCS 非常陌生,所以我会有很多这样的问题。
Not sure if this would be better on Programmers or another Exchange but here goes:
I'm planing on using git and github for my first project and had some committer user info questions.
When I set up my global username, should I use my full name or my username for github or even one then the other with a dash between or something? I don't really know exactly what it is they see based on what I choose. I'm not worried about people knowing who I am, just wondering how it works.
Should I set an email for it? How accessible is that email address to web crawlers and such or should I even worry about that? It's a gmail address so I was thinking of using the + command to let gmail automatically turn it into its own label (that's how it works right?). I would probably do [email protected] or [email protected] since it's a bit shorter.
I'm very new to git and VCS' in general so I'll be having a lot of questions like this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Github 不会使用您在 Git 全局配置中使用的名称和电子邮件进行身份验证。 Github 使用 SSH 密钥进行身份验证,因此您可以在名称/电子邮件中输入您喜欢的任何内容。
您稍后可以将您的 Github 帐户与您在 Git 提交中使用的一封或多封电子邮件相关联。
Github 似乎并没有在网络界面中实际显示电子邮件地址(至少,我现在找不到它们,而且我不记得他们是否曾经显示过)。但是,假设任何爬虫程序都可以完全访问所使用的电子邮件地址。 Gmail有垃圾邮件过滤器,所以不用担心。
The name and email you use in your Git global configuration is not used by Github for authentication. Github uses SSH keys for authentication, so you can put anything you like in the name/email.
You can later associate your Github account with one or more emails that you use in Git commits.
Github doesn't seem to actually show email addresses in the web interface (at least, I can't find them at the moment and I don't recall whether they used to show them or not). Assume, however, that the email address used is completely accessible to any crawler. Gmail has spam filters, so don't worry about it.