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