随笔分类 - Git
摘要:1、查看全局用户名和邮箱 $ git config --global user.name $ git config --global user.email 2、修改某git仓库的用户名和邮箱 在该仓库目录下,提交以下命令 $ git config user.name ${your name} $ g
阅读全文
摘要:1.⚡ 先测试可用性 $ ssh -T -p 443 git@ssh.github.com 如果提示如下说明可用 2.⚡ 如果不行,则编辑 ~/.ssh/config 文件,如果没有config文件的话就直接 vim ~/.ssh/config加入以下内容 Host github.com Hostn
阅读全文
摘要:1.⚡设置git用户名和邮箱 (1) 用户名和邮箱地址是本地git客户端的一个变量,每次commit都会用用户名和邮箱纪录。github的contributions统计就是按邮箱来统计的。 $ git config --global user.name "${你的用户名}" $ git config
阅读全文

浙公网安备 33010602011771号