git_03_git visualization tools github Desktop Tutorial

Foreword

github desktop is a desktop client github, support for Windows and Mac OS versions. Simple to use, you can view, create and switch branches, as well as submit, merge or deploy code.

download

Because of computer limitations, mac os here as an example to show the download process

Official website address: https://desktop.github.com

 

Once downloaded, double-click the downloaded application, click "Open"

 

 

No first use to log into

 

 

Open the local project

Click Add an Existing Repository ...

Click Choose, select the local project

Click Add Repository, add a project

Common Operations

Create a local branch 

Click on a branch at New Branch -> Enter the branch name -> click Create Branch

 

 Creating success

 Switching branch

Branch list, click to switch to the target branch branch

Submit code to a remote repository

Check to be submitted to File -> Input Remarks -> Click Commit to xxx (submit code to a local warehouse) -> Click Push Origin (submitted to a remote repository)

 

 Pull the latest code

Click Fetch origin

 

 Merge branch

The list of branches pop, click on the bottom Choose a branch to merge into xxx

 

Select the branch you want to merge -> Click the bottom of the Merge xxx into xxx

View History

Click History-> History list, click on the name to see the record -> the right to view details of a Change

 

 

 

Cancel the changes

Right-click the modified file -> click Discard Changes ... -> confirmation pop, click Discard Changes

 

 

Guess you like

Origin www.cnblogs.com/mini-monkey/p/12032043.html