Uploading code to GitHub via idea

Source: Internet
Author: User
Tags ssh
1. Configure GIT environment go to git official website https://git-scm.com/download git tool after download is complete, run Git bash, set user.name and user.email two parameters
$ git config--global user.name "Your name"
$ git config--global user.email "email@example.com"
Use the following statement to generate a key file, without a password, press the ENTER key
Ssh-keygen-t rsa-c "Email"
Add the generated public key file (user folder->.shh->id_rsa.pub) content to the GitHub account in SSH (click the Avatar->settings>ssh and GPG keys). 2. Set idea open settings->version control->github settings in auth type select password, and enter the GitHub username and password, click Test Verify click vcs- >import to Version Control->share project on GitHub based on your needs, select the file you want to share, and finally click Share to finish, Finally check your GitHub account for more than one repository if you add a new file later, you need to commit and push to GitHub via Vsc->git->push.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.