Create your own github and create your own open source project

Source: Internet
Author: User

The author is a university in reading students, their own in peacetime study, GitHub on the open source project to provide a great help to themselves. GitHub is the most widely distributed project management software available today, and GitHub hosts a number of very good open source projects. I think that each of the IT industry should have a self-owned GitHub. The following is an introduction to the author's own step-by-step process of creating their own github, the author is also online access to a lot of information to create a successful, here to share their experiences to everyone, but also to record their own learning process, hoping to give those who want to create their own github some help.

1. Register your account with GitHub. https://github.com/

2. Create the first code warehouse.



Fill in the Code warehouse name, my first code warehouse name: HelloWorld (the first one to think of is HelloWorld, the programmer does not explain);

Selecting the Public,public permission means that everyone can view the code and download it.

Private permissions are charged, which means that only the specified user can view and download the code.

Then click Create Repository, and the code warehouse is created successfully.

3. Download and install the GitHub client (client under my Windows), Address: http://msysgit.github.io/, select the version that corresponds to your computer. Then is the installation of the client, do not do too much introduction.

4. Create a folder locally on your computer to save the project files.


In this directory right click, the GIT bash option will appear, click Enter.

5. Set the user name and email address. These two values are the values that are recorded as uploads. Enter the command:

git config--global user.name "user name"

git config--global user.email "Mailbox"

View current settings can be used: git config--global user.name

6. Initialize the local repository: Git init

A. git file will be created in this directory (this file may be hidden, the author is the windows8.1 system, the file is hidden and thought not to be generated)

7. Place the original project file in the directory, and then include the project in. Git version control

git Add. (Be sure to note that there is a space between the add and.)

8. Place all changes in the local staging area and wait for upload.

git commit-m "instructions for this upload" (some instructions for your project)

9. Connecting to remote warehouses

Git remote add origin "Https://github.com/GitHub user name/code warehouse name. Git"

Remote repositories that are locally linked to can be viewed via git remote-v

10. Pull all updates from the remote repository (every time you upload a project)

Git pull Origin Master

11. Uploading local updates to the Code warehouse

Git push Origin Master

12, waiting for a while, and so on, you can see your own project on the GitHub home page, because it is the public permission to choose, others can also view, download your source code.


13. Here's a self-contained GitHub project hosting space is created.

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.