Git basic use-installation, configuration, easter eggs (right-click associated with the registry)


Preface

Git is a code version control system commonly used in the development of most programmers’ common programs. It is an open source distributed version control system for agile and efficient processing of any small or large projects. The flexible use of various commands can facilitate management and improvement. Development efficiency.

One, Git download

IOS version installation path
window version installation path

Two, Git installation

Tip: After the
download is complete, the next installation is basically OK

1. Double-click the installer

Insert picture description here

2. Select the installation path

Insert picture description here

3. Configure shortcuts

Insert picture description here

Addition icons---- 是否创建桌面快捷方式。 
Windows Explorer integration---浏览源码的方法,使用bash 或者 使用Git GUI工具。 
Associate .git* ----  是否关联 git 配置文件, 该配置文件主要显示文本编辑器的样式。 
Associate .sh ---- 是否关联Bash命令行执行的脚本文件。 
Use a TrueType---- 在命令行中是否使用TruthType编码, 微软和苹果公司制定的通用编码。

4. Set the directory name of the shortcut in the start menu

Insert picture description here

5. Select Editor

Insert picture description here

6. Set environment variables

 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20210324175717726.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NTE3NjQxNQ==,size_16,color_FFFFFF,t_70#pic_center)
  1. Choose the newline format when submitting, the default is OK,
    and Insert picture description here
    Insert picture description here
    Insert picture description here
    Insert picture description here
    then close all the way after the next installation is successful
    Insert picture description here

Three, Git configuration

1. Configure user information

  1. Configure an individual's user name and email address:
git config --global user.name "XXX"
git config --global user.email 123@163.com
  1. View existing configuration information
git config --list
  1. View information about environment variables
git config user.name

2. Configuration instructions

git config configures working environment variables

  1. System-level configuration, applicable to all users ----->git config --system
  2. User-level configuration, only applicable to this user----->git config --global
  3. Project-level configuration, only applicable to the project----->git config

Four, right-click to associate Git bash

Tip: After downloading and installing git, it will appear when the right mouse button does not have a git bash here option.
Next, simply organize it:

1. Win+r key, enter regedit to open the registry
Insert picture description here
2. Find the Dirctory/shell directory in the registry, if not, right-click and select the shell->new->item, name it git_shell, and then use the same method in the git_shell file Create a new item under the folder, which is command
Insert picture description here
3. Double-click the command—>Conversation box to modify the data value—>Fill in the git-bash.exe path.
Insert picture description here
4. After the configuration is complete
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45176415/article/details/115181616