You are the first day to work in the company. The project code is hosted in GitLab and the project address is [email protected]:org/project.git. Now there is a code that you need to modify. $> SSH – keygen – t RSS – C [email protected]

$> SSH – keygen – t RSS – C [email protected] SSH if yes, there is a public key —– Find the public key, copy the content, and paste it to Github to check whether the setting is successful: SSH -t [email protected]

If this is the feedback: The authenticity of host ‘GitHub.com (207.97.227.239)’ can’t be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)?

Just type yes and you’ll see: Hi XXX! You’ve successfully authenticated, but GitHub does not provide shell access.

This test succeeded.

Error: Unknown key type-rsa

Step 2: Copy the public key to Github

Step 3:

$> git config — global user.name

$> git config – global user.email [email protected]

$> git clone [email protected]:org/project.git

$> Git Checkout $> Git checkout $> git checkout $> git checkout $> git checkout

Step 6: Modify the code

Step 7: Git status

Git add

Git commit an am ‘bugfix’

Git push — set an upstream origin project — 20170227 — zhangsan — bugfix

— — — — — — — — copyright statement: this article to CSDN blogger “Coding With you…” CC 4.0 BY-SA copyright agreement, please attach the original source link and this statement. Original link: blog.csdn.net/weixin_4256…