Configure Code Cloud in VS Code for code management (solve your error)

Download and install the latest version of Git on the Internet. When installing, there is an option to choose Visual Studio Code as the default editor, and the rest are all default.

After installation, open Git Bash from the start menu and enter the following commands in sequence:

ssh-keygen -t rsa -C "gitee.com"
cat ~/.ssh/id_rsa.pub

Note that the first command will prompt you to enter a name, do not fill in, just press enter three times to skip. The second command will return a string of SSH public keys. If you fill in the name, it will cause an access denied error in the last step.

Register the cloud account, paste the above public key in "Settings-SSH Public Key", and fill in the host username in the public key title (following the username@hostname format, which is the one displayed at the beginning of Git Bash or the command line), save.

Finally, enter in Git Bash:

ssh -T git@gitee.com

Please refer to this blog for the remaining operations .

Guess you like

Origin blog.csdn.net/iamzhtr/article/details/93379166