当前位置:网站首页>Use SSH to pull code
Use SSH to pull code
2022-07-18 07:37:00 【InfoQ】
SSHadopt SSH Way to pull code
1. Configure the username and mailbox
$ git config --global user.name " user name "
$ git config --global user.email " User mailbox "
2. Generate key pair
$ cd ~/.ssh // Enter the specified path folder
$ ls // View the contents under the folder
id\_rsaid_rsa.pub.pub.sshssh-keygen$ ssh-keygen -t rsa -C " Your email "
enterYour public key has been saved in /home/you/.ssh/id_rsa.pub.
The key fingerprint is:
3. Get into .ssh Folder , Find public key
.sshid_rsa.pub$ cat ~/.ssh/id_rsa.pub
ssh-rsa your secret [email protected]
4. Enter the code hosting platform , Upload key
Settings -> SSH and GPG keys -> New SSH keykeytitleadd key$ ssh -T [email protected]
Attempts to ssh to github
Hi xxx! You've successfully authenticated, but GitHub does not # provide shell access.
5. Find the project warehouse SSH Address
git remote \-vremote url$ git remote -v
origin https://github.com/username/project.git (fetch)
origin https://github.com/username/project.git (push)
httpsgitgitgithubsshURL
sshgit remote set-urlremote-urlgit remote set-url origin [email protected]:username/project.git
git remote -v
URLSSH6. Use this address to submit... In the future / Just pull the code

边栏推荐
- The characteristics and underlying principles of synchronized, as well as the state and expansion and upgrading process of locks
- Is it safe to choose a securities company to open an account for tongdaxin?
- 【英雄哥七月集训】第 15天:深度优先搜索
- JVM调优命令大全及常用命令工具和实战步骤
- Execution order of the for loop
- Detailed explanation of time complexity and space complexity
- 汇编入门指南
- MySQL 为什么临时表可以重名 ?
- Devsecops R & D security practice - Design
- 2022 China mobile maker marathon Internet of things special competition kicks off
猜你喜欢

客户端的那些事儿

来自JRockit的礼物:JMC虚拟机诊断工具

【使用Win10自带远程连接工具】远程访问并控制【另一台Win10电脑】

Win10 right click the new column to add a new markdown file (typora.md)

美团一面面经及详细答案

Procédure d'essai de pénétration
![[use win10's own remote connection tool] to remotely access and control [another win10 Computer]](/img/a8/c58e43b4e2441db9dc57e1751ee262.png)
[use win10's own remote connection tool] to remotely access and control [another win10 Computer]

聊聊程序员的简历应该怎么写(帮修改简历)

实现浏览器 - Servlet - 数据库交互操作

Unit MySQL appears in MySQL Solution of service could not be found
随机推荐
Openharmony module 2 file samgr_ Server parsing (3)
ASP. Net
BigDecimal比较大小
CSDN中Markdown设置表格列宽度
在弹外,企业使用RDS能不能像弹内一样多环境使用DMS呢?比如这些生产实例下面的数据库,我想要有多
for循环的执行顺序
Eight guidelines for modbus-rs485 wiring
MODBUS-RS485布线的8条准则
非法获利超百万,行业新风口正被破解侵蚀
OpenHarmony相关知识学习
mysql中 decimal(10,2)格式的通过stream 方式写到 kafka 变成 stri
Openharmony related knowledge learning
Probability meditation: 1 Plausible reasoning
The regular expression retains [content within the matching range], and then replaces [content outside the matching range]
MySQL触发器
Queue(单项队列)和Deque(双端队列)的知识点整理
记录Yolov5的使用(1)
Openharmony module 2 file samgr_ Server resolution (1)
通达信开户安全吗? 开户哪个证券好
sql中if判断出了错