Teach you how to use GitHub quickly

Source: Internet
Author: User

I have seen a few github use of the tutorial, the feeling is not very clear, since the see this, easy to understand, but also learn the basic use, here for everyone to recommend.
(Turn to know, in order to let more people see, please allow me to use "original", if infringement please contact.) )

Basic features of Github:

Repository : You and I do "know the Home", "Know Home" is repository " t2 level 425mm repository repositories is a number of repository meaning.

Fork We make the work of "know Home" separate, you are responsible for the art, I am responsible for the front-end development, but we also need data server master. You got a call. php Daniel, this Daniel soon took care of the server side , nothing to do, looked at my front-end code, a look, "I am, how is this not semantic?" It's all a exclusively. <DIV> Ah, Future interaction js still not doing dom repository found I wrote" zhi.html ", fork a copy, that is, authorized copy.

Branch : fork github repository repository branch

Pull request : Daniel has finished a new high-end zhi.html pull request

• Now you understand thatGithub 's structure is repository-branch-( get / push ) File. You also find that Github can compare the similarities and differences of two files, the new ones are marked with green, and the deleted ones are marked in red. Pull Request can also be controlled, even can merge Branch, this is the team cooperation weapon Ah, really is tall also, preface it? Do you have a heartbeat?

1. Please sign up for Github and log in.

2. download the client and log in, the client is responsible for the data on your hard drive interacting with Github Server data, and then set up the storage directory. In order to show your talent, you decide to name this directory "the father of the gods."

3.since there are so many foreign open-source projects, we have no autonomy in the domestic truth. You have to practice this awesomeForkfunction. Now you're here.Fadeoc/frontend· GitHuband you see this is the userFADEOCthe one called "frontend"ofRepository, you laughed, this guy learning front-end knowledge but 10 days, code a piece of slag, unexpectedly some code only wrote "potato" and "two dog son" several Chinese characters. You click on the top right corner .Fork, and thenClone in Desktop, save it to the "Father of the Gods", wow! The file is already in your computer, absolutely FREE! +10086!

4. One hours later, you have A FADEOC of the slag code, decided to help him improve, or else he will be finished the project. After you have changed,pullRequest, this ah unexpectedly said your code is too slag, do not absorb. You are a bastard! I do it myself, rob you of market share!

5. you click on the top right corner of your avatar. + Repository FADEOC set  Up in desktop FADEOC " The folder.

6. you wrote a "God Daddy home .html " and put it in "explode" FADEOC "folder.

7. You open the client and see the Client interface master branch (host branch, this name is too cloud) there is a uncommitted changes .html ". You open the show button, in summary (abstract) section add "Roll your ya's FADEOC " in description (detail description) is not necessary to write, but you still decided to add" burst your chrysanthemum "four characters. Then select " COMMIT&NBSP;TO&NBSP; Your user name. "

8. to upload this submission to github Let the tramp See, you clicked on the top right corner of the client and then showed a " +1 sync sync two curves before the arrow stopped rotation, synchronization succeeded, " +1

9. You came to github , refresh his own personal page, "end of the explosion FADEOC "this repository appear on the page, click on it, in which you see "God Father Home .html ".

in order to make the initial purpose of this project more understandable, you decide to add a Readme.txt, although there is always a file in the N-multi-software folder from the previous download Readme.txt, you haven't opened one. But in the circle mixed, you have to mix the stinking, so you in the " FADEOC" under a new Readme.txt, which wrote, "FADEOC Yes, that's you, look at my lips, you bastard! "

11.also use the clientCommit, and thenSync, after a few seconds, refreshedGitHub, you see another one moreReadme.txt. And there is a more text box below, which showsReadme.txtinside the content "FADEOCYes, that's you, look at my lips, you bastard! ", avoiding theFADEOCThis tramp doesn't want to open it.Readme.txtyou will not see the awkward situation of your cordial greetings. GithubThat 's really sweet.

you copied this Repository address andemailed it to FADEOC.

13.fadeoc fork your repository readme.txt pull request you see FADEOC new generated branch readme.txt

14.FADEOC Pull Request again ,readme.txt changed to "Dare not do evil?" "

15.you're a little bored, how the fuck can you keep himPull Request, future Major ProjectsNmore strangers, rookie .Pull Requestannoying, you can not open source, to private? You finally found it.GithubUpgrade service and you laughed and will thisRepositoryfrom Publicturned into aPrivate. FADEOCIt's going to go .Pull Request, without your response, he will only gradually be the wrath of revenge of the fire to make sense, but, who cares?

Github has more details, and in the process of using it, you'll slowly discover it and learn it slowly. But anyway, now you're going to use The basic features of Github.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Teach you how to use GitHub quickly

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.