preface
- If you’re in Internet technology, you need to know
Git
&Github
- This paper will adoptFigure and tableTo give you a comprehensive introduction
Git
与Github
, including its functions, application scenarios & the relationship between, I hope you will like.
directory
Schematic diagram
1. About Git
1.1 introduction
Git definition, application scenarios & features:
Schematic diagram
1.2 contrast
Here, I compare Git with other types of version control systems:
- Horizontal comparison (with centralized version control systems)
- Vertical comparison (with comparable distributed version control systems)
- See the figure below for a detailed comparison
Contrast. JPG
1.3 Use of Git
1.3.1 Git Installation
Here is the installation of the Mac version:
- To obtain
Mac OS
thedmg
Installation file:Get address = Google code
Please pay attention to science online
- Install it after successful download
A. Git will be installed in /usr/local/git/bin b. You can enter “Which Git” on the Mac terminal to confirm the successful installation
Successful Installation of Git
- Note:
Git
Does not have a graphical interface itself, generally can only be entered in the terminal commandGit
The use of
You can also install Git graphical software. For details, see Git Graphical Interface Client Summary
1.3.2 Specific use of Git
Git command usage :(please save it!
Schematic diagram
- So far, with respect to
Git
End of introduction - Next, I would like to continue to introduce and
Git
Highly relevantGithub
.
2. About making
2.1 introduction
For Github’s definition, features and features, see the following figure:
Schematic diagram
2.2 Functions (Application Scenarios)
-
Github
Because of its “remote” and “open source” characteristics, so its application scenarios will be more thanGit
Much more - Now, I’m going to use a graph to illustrate it
Github
Application scenarios of
Schematic diagram
Below, I’ll go through Github’s application scenarios in detail
2.2.1 Basic Application Scenarios
The basic application scenarios are the same as Git.
2.2.2 Common Application Scenarios
Because the code is stored remotely & publicly, it is suitable for multiple people to collaborate on the same code
Schematic diagram
B. Acquire, use & learn great open source projects
- Due to storage
Github
The code is open source, so you can easily access, use and learn from itRetrofit
,Picasso
, etc. - So,
Github
It has become the largest open source community of developers in the world, including world-renowned technology companies, technology leaders and outstanding open source projects. Such as:- World-famous technology companies such as
foreign | Making the address | domestic | Making the address |
---|---|---|---|
github.com/google | tencent | github.com/Tencent | |
Apple | github.com/apple | Ali. | github.com/alibaba |
github.com/facebook | baidu | github.com/baidu |
- World-renowned technology leaders such as
-
Android
God –JakeWharton
:github.com/JakeWharton. Famous open source libraries are:OkHttp
,Retrofit
,Picasso
Etc.
Schematic diagram
-
Linux
The inventorLinus Torvalds
:github.com/torvalds
Schematic diagram
- The best projects are given priority
GitHub
Open source, such as
language | Making the address |
---|---|
Linux | Github.com/torvalds/li… |
Nodejs | github.com/nodejs/node |
Swift | github.com/apple/swift |
Ruby | github.com/ruby/ruby |
2.2.3 Additional Application Scenarios
-
GitHub accounts are very important to companies’ hiring processes. If you are active & have your own open source projects, this is a great interview plus and will help you in your job search
-
Github has become the largest open source developer community in the world, with many of the world’s top tech companies and top tech minds
-
GitHub Pages is an easy way to build a blog with custom styling & binding domain (BI) name (GE).
Here’s a GitHub Pages guide to building a blog
- writing
Based on theMarkdown
theGitbook
If you love technology collaboration, you will love it.
That’s all you need to know about Github.
3. Git and Github
- Due to the
Git
与Github
The name and function of “is very similar, so many people confuse the two - Below, I will use a picture to reveal the relationship & difference between the two
Schematic diagram
4. Git & Github joint usage scenarios
- The local
Git
& remoteGithub
Will often be used in combination - Below I will list some common scenarios & corresponding instructions for the combination of the two
Scenario 1: After modifying code locally, you need to synchronize it to GIthub
<-- Step 1: local upload --> // a. Go to the directory where the code is stored: CD XXXX (path) // b. Git add. // c. <-- step 2: synchronize to Github --> git push origin masterCopy the code
Scenario 2: Collaborating with other developers
Git branch <name> git branch <name> git branch <name> git branch <name Git branch -d <name> git branch -d <name> // 2. Go to the original repository folder CD XXXXX (path) // 3. Git pull < / git pull origin < / git pull origin < Local needs to synchronize the code on remote Github first // 1. Git pull <-- error handling --> press "I" write your merge message press "esc" write ":wq" then press enter // 3. Git add. // b. 4. Synchronize to Github git pushCopy the code
There are many scenarios for Git and Github to use together, but this is just the most common one.
5. To summarize
- This article gives a comprehensive introduction
Git
&Github
I believe you now have a very good understanding of both! - So I’m going to continue with this
Android
In the knowledge of in-depth explanation, interested can continue to pay attention toCarson_Ho android Development Notes
Thumb up, please! Because your encouragement is the biggest power that I write!
The Android event distribution mechanism is the most comprehensive and easy to understand solution for Android screen adaptation. It is the most comprehensive and easy to understand solution for Android screen adaptation. Android development: JSON introduction and the most comprehensive analysis method! BroadcastReceiver Is the most comprehensive version of Android’s BroadcastReceiver
Welcome to attentionCarson_HoJane books!
Share the dry things about Android development from time to time, the pursuit of short, flat, fast, but there is no lack of depth.