Just know almost at the top see a pair of GitHub with easy-to-understand explanations:
You may not know how to build a Cadillac, but you can drive a Cadillac.
you may not understand what technology Evernote is made of, but you can also use Evernote.
you may not know git, but you can use GitHub.
as you want 1 hours learn to roughly use GitHub's just learning front end 10 days of technology blindness. That's what I did:
learn the basic features of GitHub: That's why you use GitHub.
- Repository: You and I do "know the Home", "know the Home" is Repository, that is, the project or "Future weapons T2 class 425mm magnetic track cannon", How to call you. You just need to know that repository is a place to put the project. Sometimes there will be repositories, is the meaning of multiple repository.
- Folk: We make "know home" work separate, you are responsible for the art, I am responsible for the front-end development, but we also need data server master.
You've got a PHP Daniel. This Daniel is very quick to fix the server side, idle to Nothing. Just looked at my front-end code. A look. "I am, how is this not semantically?" All is the exclusively <div> ah, in the future do interactive JS also do not engage dom ... "so this Daniel in repository found I wrote" zhi.html ", folk a copy, that is, authorized copy.
- After Branch:fork, there was a similar repository on the GitHub of Daniel, known as the home page. But this repository is a replica, only to him, this is his branch, that is, branch.
- Pull request: Daniel has finished a brand new high-end zhi.html, which points to push request.
I took it and glanced at it. Suddenly surprised exploded watch, "Chinese football-high, is really high!"
”
- Now you understand that GitHub's structure is repository-branch-(get/push) files. You can see the similarities and differences between GitHub and two files. The new section is marked with a green mark, and the deleted part is marked in red. Pull request can also be controlled and even merged with branch. This is the team cooperation weapon Ah, really is tall also. Preface, huh? Do you have a heartbeat?
- Please register with GitHub and log in.
- Download the client and log in. The client is responsible for the interaction of the data on your hard disk with the Githubserver data, and then sets up the storage folder. In order to show your talent. You decide to name this folder "The father of the gods".
- Since there are so many open source projects abroad. There is no reason for us to be independent in our country. It is necessary to practice this wonderful folk function.
Now you've come to Fadeoc/frontend. GitHub, you see this is a user fadeoc called "frontend" of the repository. You laughed, this guy learns the front end knowledge is only 10 days. Code a piece of slag, incredibly some code just wrote "potato" and "two dog son" several Chinese characters.
You ordered the folk in the upper right corner. Then clone in the desktop, save to the "father of the Gods", wow! The file is already on your computer, totally FREE!
+10086.
- After one hours, you have some experience with FADEOC's slag code, and decided to help him improve. Or he will be finished with the project.
When you're done. Pull Request. This ya's actually said your code is too slag, do not absorb. You are a bastard! I do it myself and rob you of your market share.
- You click the + sign in the top right corner of your avatar and choose the first new repository, the new repository, and a name. Called "FADEOC", then click on green buttonset up in desktop, pop-up Save box, select "Father of the Gods". So the "father of the Gods" appeared under a "FADEOC" directory.
- You wrote a "God Daddy home page. html" on your own. Put it under the "FADEOC" catalogue.
- You open the client and see the master Branch (host branch) in the client interface. The name is too cloud) there was a uncommitted changes, the uncommitted change. That's what you just wrote. "Home page. html".
You open Showbutton, in the summary (abstract) Part add "Roll your Ya Fadeoc", in Description (detail description) position is not necessary to write, but you still decided to add "burst your chrysanthemum" four characters.
Then select "Commit to your username".
- In order to upload this submission to GitHub, let the FADEOC see. You click on the back of the client to show a "+1" of sync, that is, after a few seconds, sync before the two curve arrows stop the rotation. Synchronization was successful. "+1" disappears. Indicates a successful upload of a file.
- You come to GitHub and refresh your personal page. "FADEOC" This repository out on the page now, click on it. In it you see "God's father homepage. html".
- In order to make the initial purpose of this project more straightforward, you decided to join a Readme.txt, even though there was always a Readme.txt in the directory of n-multiple software downloaded previously, you haven't opened one.
But in the circle, you have to mix the stinking. So you in the "end of the explosion FADEOC" under a new Readme.txt, which wrote, "FADEOC." That's right. That's you, look at my lips, you're a dick. ”
- Use the same clientcommit. Then sync, after a few seconds, refreshes GitHub. You see a readme.txt more. And a text box appears in the following. It shows the contents of Readme.txt inside "FADEOC. Yes, that's what you're talking about. Look at my lips, you bastard!
"To avoid the awkward situation where the FADEOC don't want to open Readme.txt and don't see your cordial greetings. GitHub is so sweet.
- You copied this repository address and emailed it to FADEOC.
- FADEOC is not so easy to be defeated, so he folk your repository, changed the Readme.txt, and then pull request, you see FADEOC New Generation Branch under the Readme.txt has been changed to "you are the scum."
You rejected the merge request.
- FADEOC pull request again. Readme.txt changed to "Dare not do evil?" ”
- You're a little bored, how can this fucking talent not let him pull request, future big item n Many strangers rookie pull request is annoying. Do you have to open source and go private? You finally found GitHub's upgrade service, and you laughed and turned the repository from public to private. FADEOC will certainly continue to pull request, without your response, he will only gradually be the wrath of revenge of the fire to make sense. But. Who cares?
GitHub also has a lot of other detail features. In the process of use, you will slowly discover, slowly learn.
But no matter what. If you will be using the basic features of this GitHub.
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
How to better understand and use GitHub