Git usage-How to upload a local project to GitHub

Source: Internet
Author: User

Turn from: 70172900

Right-click Test folder root directory, click "git Bashhere" to open the git command line.

follow The documentation prompts on the GitHub new warehouse to submit the project:

1. on the command line, enter "git init" to Add the Test folder to git management;

2. enter "git Add. " "(Don't miss it." ) . "), will Test the entire contents of the folder are added to git .

3. enter "git commit-m" First commit "" ("git commit-m" commit message ""

4. enter "git Remote add origin https://github.com/shench5612390/Test.git" (git remote add Origin your own HTTPS address), connect your guthub repository.

5. enter "git push-u origin master" and upload the project to Github.

Download The item above github:

Clone remote repository : input git path for Project from Vision Control, File, new

When you import a maven project in idea, the pom file is not automatically recognized as a normal orange XML file.

Workaround: Click on the rightmost sidebar, click Add (small blue Plus), select the Pom.xml file you imported the project

Git usage-How to upload a local project to GitHub

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.