"GitHub Desktop" MacOS and win configuration and easy to use

Source: Internet
Author: User
Tags git shell

A. GitHub introduction

1.GitHub is a managed service that provides a Git repository for developers. This is a perfect place for developers to share code with friends, colleagues, classmates, and strangers.

To summarize, thebiggest feature of GitHub is "facing people"

The difference between 2.GitHub and Git
In Git, the developer stores the source code in a repository called the Git repository and uses it.

GitHub is a service that provides a Git repository on the web. In other words, the software source code exposed on GitHub is all managed by Git.

(What is the image source of GitHub?) -Deep Reader's answer)

two. What is version control

Version management system is divided into Subversion, such as centralized and Git This kind of decentralized , for you to briefly explain the difference between the two.

————-Centralized ————

The centralized type, represented by Subversion, stores the warehouses centrally in the server as shown in 2.1, so there is only one warehouse. This is why this version management system is known as a centralized type. Centralized storage of all data in the server, there is easy to manage the advantages. However, development is almost impossible once the developer is in an environment where the server cannot be connected and the latest source code cannot be obtained. The same goes for server outages, and in the unlikely event that a server failure results in data loss, the developer will never see the latest source code again.

———— Dispersion Type ————

git Span class= "FONTSTYLE0" is the decentralized type represented. As shown in, github warehouse fork fork github fork out of the warehouse and the original warehouse is two different warehouses, developers can Feel free to edit.

, the decentralized type has a plurality of warehouses, relatively slightly complicated. However, because there are warehouses in the local development environment, developers do not have to connect to remote repositories for development.
The diagram shows only the general usage process. In fact, push and pull are available between all warehouses . Even without GitHub, developer A can push or pull directly to developer B 's Warehouse . As a result, beginners may not be able to figure out where the latest source code is stored, leading to the development losing control, if not developed prior to use.

Three. GitHub Desktop Client Installation

To enjoy the services of GitHub, there is a dedicated desktop client in addition to the Web page.

1.Win down

First to download the GitHub client website address: https://desktop.github.com/

Down, that's it, then click Install Online, a box appears, and then it's waiting.

Once installed, you should have a GitHub icon on your desktop. Click to open.

Because I was very slow, so I installed a free installation version.

Baidu Cloud GitHub Desktop for win Link: http://pan.baidu.com/s/1hrPKEO0 Password: wt0d

2.Mac OS.

First to download the GitHub client website address: https://desktop.github.com/

Unzip, install after download

He will prompt you whether you want to move to the application's folder. Point is on the line.

Four. Use of GitHub Desktop

1. Click to enter the software and log in to your GitHub account. To create a local folder, you can see that there are 3 of them, add: adding a warehouse path; creat: Create a warehouse path; clone: Clones an existing repository.

2. Projects created prior to downloading from the GitHub website

3. As can be seen, this branch, before there are 2 versions. This down-to-local version 0 changes.

4. Click on the time node on the master trunk to see what was modified in the previous version.

5. Put the code you want to upload under the local folder of your configuration, and you will be prompted for new changes, click on the revision and release notes, and commit to master can be submitted to the trunk.

6. You can see one more time node on the trunk. The Hello World repository on the website also sees the newly uploaded code.

7. When I need to get the code on the Mac before win, click Sync on the top right corner to update the code on the GitHub repository to local.

Add: If you click Sync, then it's been a long time since you met a github for Windows sync failure problem "GitHub failed to sync this branch" failed

Then the Internet to recruit the next solution. You can use the command line to pull code in the Git shell.

Git pull Fetch

git push Commit

"GitHub Desktop" MacOS and win configuration and easy to use

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.