1. Generate SSH
Right-click on the desktop, choose Git Bash here, go to the operator interface, enter "Ssh-keygen-t rsa-b 4096-c" [email protected] (the mailbox you signed up with) "" command
Continue to enter the "cat ~/.ssh/id_rsa.pub" command to generate SSH
2. Get SSH
Paste ssh from the command line into the project in the format (account->SSH public key)
If you are prompted for an SSH format error, please check if your paste is compliant, if required, still prompt for SSH format error, open C:/user/bigface (your own user name)/.ssh folder (take Cheng for example)
Locate the extension file named Pub, open it in Notepad, paste the content into the Ssh-rsa Public Key Content dialog box in the Web page, and then click the Add button after removing the subsequent mailbox (that is, Siasun @saucxs).
SSH should be configured successfully.
3. Create a local warehouse
Create a folder locally as your local repository for uploading code, and then configure the repository with the coding server side.
Right click inside this folder, choose Git Bash here, first initialize the local repository, enter "git init" command
Next, clone the remote repository, enter the "Git clone http://xxxxxxxx" command, the URL (link) in the command to find the following way
Paste this URL into the command to clone the remote repository
4. Code push
At this time, the configuration of the local warehouse is complete, next to check the status of the local warehouse, a check whether the configuration is successful, and then to push the code
Enter the command "Git status"
There are gg.txt files in Cheng's local repository, and when you enter the git status command, you will find the "gg.txt" printed in a red font, indicating that the file exists in the local repository but not pushed to the cloud
Enter "git commit-m" code comment casually write "" Command submit
Then enter the "Git Push Origin Master" command to push to the cloud, origin is the server, master is the branch.
Because we have not used the "git config" command before, so push the code will pop up a dialog box prompts to enter the mailbox and account password, such as (Git config method in the last link of the article)
After all, enter "git status" To view the local code status, with the green Word display, the upload is successful, go to the Coding.net Project homepage, you will find that your local push code has appeared in the project.
Thanks to the help of Lexida classmates
Related tutorials
Https://coding.net/help/doc/git/push.html
Http://www.jianshu.com/p/eaf2edb496f7
Coding code Warehouse configuration and code upload