栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Github

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Github

登陆github和公司git:
1. 首先git clone ”具体git“
2. 在该文件夹下(注意不要使用--global):
    git config user.name "your name"
    git config user.email "your email"
3. 生成密钥文件
    ssh-keygen -t rsa -C "you email" 
4. 将公钥拷贝到github.com 或者 公司的git网站
5. 为私钥添加config(mac 是在.ssh文件下)
    Host github.com
    User your email # 你刚才生成密钥对使用的email地址
    Hostname ssh.github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa_github # 注意这个位置是私钥
    Port 443
6. 测试是否配置成功:
    ssh -T git@jHost # Host就是你设置的主机名
    显示:Hi your github name! You've successfully authenticated, but GitHub does not provide shell access.表示成功!

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/680529.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号