Learn about Linux's local git central repository with a rookie

Source: Internet
Author: User

http://blog.csdn.net/eastmoon502136/article/details/7735957

1. First set up a folder to test

2. write a main.c file in test

The contents are as follows:

3. Then build a git repository

4, then is the content added, upload up

5. Then we look at the git log information

6. Do you have something? The instructions are ready to upload. Then it's going to be repos to build a git center repository .

He's clone the git repository just now.

7, has been established, and then we continue to look to download down, and upload the code and other simple operations.

First, let the RM drop the warehouse where the test was first established .

8, and then started to git clone.

Okay, did you see that test? The instructions have been git clone down.

9, then we try to modify the code

10, and then upload

11. Then we git push to push the code to the repository.

12,OK, done. Let's look at some information below.

Let's see where the branch is.

GITK can see all the commits and changes, see? That source was the test we built , and then we modified the git clone test. That's it.

.

Then take a look at git log information.

That is, two times modified.

Learn about Linux's local git central repository with a rookie

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.