初次运行 Git 前的配置

来源:互联网 发布:淘宝买到盗版书怎么办 编辑:程序博客网 时间:2024/05/21 11:33

配置用户名

git config --global user.name 'liweibin'git config --global user.email liweibin@okay.cn

生成密钥

#查看密钥cat ~/.ssh/id_rsa.pub#不存在则生成密钥ssh-keygen -t rsa -C "你的邮箱"

以上完成以后就可以使用git了