How to publish a project to your own GitHub

Source: Internet
Author: User

I small white one:

For the first time, the project was published on his own GitHub in the form of a command line, or it was done after consulting the great God. Through the experience, small white also mastered some on the code hosting platform to release the project, in fact, as long as the heart of learning, the inside of the things is very simple. OK, nonsense less, direct to the actual operation, I hope you can also learn, teamwork is very suitable.

Xiao Bai today to introduce and some how to use the form of the command line of their own project published to their GitHub account:

about how to configure your own computer and your GitHub account, this is abbreviated:

Enter the operation:

1) First find the directory of your own project:

Small white himself is stored in a folder under the E disk, the project is published in the red Line marked out.

Look at the small white red circle, under your own selected items, right-click, in their own project into the "Git bash"

Then enter git init in the command line that pops up (this is initializing your project)

By contrast, is there a more folder called. Git

then enter touch. Gitignore, there will be one more. Gitignore.txt's Notepad

After you double-click Open, enter the following in this text:

Save well, close.

To switch back to the command line:

Enter git status (this is to find your own local project)

Enter the command git Add. (PS: See that there is a "." Behind the Add.) (dot) AH) This command adds items to the local, but has not yet been uploaded to your github site

The following command is to publish your project to your GitHub Web page.

Enter again: Git status

Then enter the git commit-m "* * * * * * for the introduction and remark you made when you published the project.

Examples of small white in this place are: (The red circle is *), that is, a note written, we will publish the project to our own GitHub when we can see

The next step is to give your own project supervisor a new warehouse on your GitHub page, and then publish the project to the warehouse you've built.

See Operation:

Note the requirements at the Red Line

Copy the code and paste the code into your GitHub command line.

After the carriage return, a similar interface will be released.

On your own GitHub page, if the code inside the repository is right. The announcement was successful.

Later code modification and team work to do the project, is on GitHub up, is not very convenient.

If you feel useful, give an encouragement.

How to publish a project to your own 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.