Create a new warehouse on GitHub and upload a local project

Source: Internet
Author: User
Tags commit

The project temporarily uses the original Springmvcdemo project that was built in the previous article:

http://blog.csdn.net/u010372981/article/details/52000252


1. First, login to GitHub, click New Repository, and the following interface will appear:

Fill in the name of the warehouse, here my name is the name of my project, as for the other tick items are not for the time being,. Gitignore, Readme file will explain what these are.


2. Clicking Create Repository creates the repository and jumps to the following interface.



The location specified by the Red line is the command that initializes the local project to the warehouse on GitHub.

3. First enter the local project directory, continuous input in step 2 of the command





OK, the above is the local project, the first time to submit to GitHub, after the first commit, then there are file changes, the most basic is the above command git add, git commit, git push, of course, because it is a project, So we're going to add the. gitignore file to the GIT remote repository by submitting some unnecessary folders or IDE configuration files.
Add the. gitignore file, push the file to the remote repository, and then you can write the code with confidence, and git will serve our project as the repository for the code.

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.