在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Linux/ git中的user.name和user.email具體有什么用處?

git中的user.name和user.email具體有什么用處?

之前我一直以為適用于驗(yàn)證用戶的,但是今天我在碼云上提交了一個(gè)私有的repo,突然發(fā)現(xiàn)git的user.name和user.email是之前github的,結(jié)果發(fā)現(xiàn)是可以提交的,那我就想著name和email到底有什么用的,只是表明提交人的姓名而已嗎

回答
編輯回答
賤人曾

"GitHub uses the email address set in your local Git configuration to associate commits pushed from the command line with your GitHub account."(from https://help.github.com/artic...
也就是說這個(gè)郵箱是來匹配GitHub賬戶的

Git uses a username to associate commits with an identity. The Git username is not the same as your GitHub username.(from https://help.github.com/artic...
這個(gè)username只是用來標(biāo)記身份的

2018年2月16日 00:35
編輯回答
骨殘心

可以這樣說吧 表示當(dāng)前提交的用戶是誰

2018年2月21日 07:36
編輯回答
逗婦乳

驗(yàn)證是用的你的ssh key,用戶名更多是個(gè)稱謂

2017年6月29日 16:56