How to submit your project to GitHub on the window

Source: Internet
Author: User


1. First you need to register an account on the https://github.com/

2. After successful registration, you need to create a new repository (storage room), which is used to store the items you want to upload.

Click the icon with the plus sign in the middle to create a new repository.

The new interface is as follows:

Here you need to enter the name of your project, you can describe your project, if you do not want your project to be seen, there is a need to pay, so if you do not want to pay, the project can only be public, that is, everyone can see, but you can choose who can submit changes to your project.

Click Creating Repository ... You can create a success.

After a successful creation, the browser jumps to a new page that appears as follows:

Here's how you can submit your project to the repository you just created from the command line. In other words, the repository you created just now is a "shell", and if you need to commit a project or update the code you need to do it by command line! And how do they relate? When you create a new repository, a unique address is generated, in this example: Https://github.com/michaelye/DemoWhatIsNewComponent.git

So far you should have understood that, right? Let's take a look at how to commit the code:

3. You need to download Git Bash, this git command-line tool, the commit code or whatever it needs to be done with this tool

Http://code.google.com/p/msysgit/downloads/list

After downloading the installation, go directly to next step.

When the installation is complete, open git Bash

At this point you can see the interface

Note: The recommended input method is best to switch to pure English, so there will not be some garbled or something wrong.

My project is stored in E:\AndroidDemos\DemoWhatIsNewComponent.

I need to get into this directory first:

The CD is meant to go into a folder, LS means to list all the files in the current directory

Note: The Tab key can serve as a complement to the input.

Finally, we entered the address of my project.

Then follow the previous successful creation of the repository, the browser to jump to a new page when the prompt to do. This is Figure 3, as follows:

Note: 1:touch readme.md indicates that a readme.md file is generated in the current directory and has no specific effect. Git.init indicates that local git management is generated in the current project directory. Git add represents the file you're going to submit to GitHub, where I'm adding the readme.md file, and git add if you want to add all the files. "." Indicates that all files in the current directory are added. Git commit-m "First commit", which indicates your comment on this submission. Git remote add Origin https://github.com/michaelye/DemoWhatIsNewComponent.git is your project address. Git push-u origin master for commit, and finally enter user name and password

Note: When you enter a password, there is no response, so you need to enter it carefully.

The top and bottom keys of the keyboard can be selected before and after the command, repeated execution.

Basically, there's nothing wrong with that.

Once the submission is successful, you can see your project on GitHub:

How to submit your project to GitHub on the window

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.