git 基本配置

作者: samtake | 来源:发表于2019-04-24 03:08 被阅读1次

配置user.name 和 user.email

git config --global user.name 'sam'
git config --global user.email 'email@qqq.com'

config的三个作用域,其中省略等同于local

  • git config --local 只对某个仓库有效
  • git config --global 对当前用户所有仓库有效
  • git config --system 对系统所有登录的用户有效

显示config的配置,加--list

  • git config --list --local
  • git config --list --global
  • git config --list --system

mac公钥

  • 生成
ssh-keygen -t rsa
  • 获取现有公钥
cat ~/.ssh/id_rsa.pub
  • 复制
cp ~/.ssh/id_rsa.pub + 相应路径

相关文章

  • Git 基本使用

    基本配置命令 git config --list或git config -l:查看配置git config --g...

  • git

    基本配置 git config --list 查看配置git config --global user.name=...

  • Git 入门

    Git 下载 windows下载地址 mac下载地址 Git 配置 配置基本信息 这些配置都是在写 ~/.git...

  • Git命令整理

    Git命令 ———————————————— git配置: git基本步骤: git分支管理: 创建分支命令: 切...

  • GIt

    [TOC] 1. git安装与配置 1.1 git安装 搜索git进官网下载,安装即可! 1.2 git基本配置 ...

  • 5. Git, Github, Gitlab

    1. 实验环境 2. Git基本操作 2.1 git安装 2.2 配置git的用户名和邮箱 2.3 验证git配置...

  • 一步一步来,记全Git命令和用法

    Git基本配置 Git配置使用git config分三种,存放在不同位置 首先要配置用户名和邮箱。每次git提交都...

  • Git基本配置

    使用git 初始化一个项目并与github或者码云建立连接 git的安装就不阐述了,window和mac下各有各的...

  • Git基本配置

    一.绑定用户名和邮箱(告诉Git你是谁) git config --global user.name "你的用户名...

  • Git基本配置

    1、配置git: (1)设置用户名称和登录邮箱 git config --global user.name '用户...

网友评论

    本文标题:git 基本配置

    本文链接:https://www.haomeiwen.com/subject/wagigqtx.html