初次安装git配置用户名和邮箱

参考:html

1、GIT 查看/修改用户名和邮箱地址 https://blog.csdn.net/autoliuweijie/article/details/52230165git

  1. 用户名和邮箱地址的做用github

    用户名和邮箱地址是本地git客户端的一个变量,不随git库而改变。ssh

    每次commit都会用用户名和邮箱纪录。gitlab

    github的contributions统计就是按邮箱来统计的。post

  2. 查看用户名和邮箱地址:.net

    $ git config user.name
    
    $ git config user.email
  3. 修改用户名和邮箱地址:code

    $ git config --global user.name "username"
    
    $ git config --global user.email "email"

 

2、初次安装git配置用户名和邮箱 https://www.cnblogs.com/superGG1990/p/6844952.htmlhtm

3、ssh-keygen 基本用法 https://www.liaohuqiu.net/cn/posts/ssh-keygen-abc/blog

4、最后弄好了 git的上传代码,更新代码后,想了n久,为啥要设置ssh的公钥呢。。。。?? 而后我就把gitLab上的秘钥给删除了,结果在Androidstudio中更新代码的时候,提示 须要输入密码的框

每次与远程仓库的操做都须要频繁的输入密码。。。。oh I get。再去gitlab上把公钥复制上吧

相关文章
相关标签/搜索