当前位置:   article > 正文

分布式版本控制工具Git的安装_adjusting the name of the initial branch

adjusting the name of the initial branch

git分布式版本控制工具
本地仓库,远程仓库(github,gitee)
下载地址:https://git-scm.com/ 速度超级慢…23k/s

换成Git下载国内镜像地址
https://npm.taobao.org/mirrors/git-for-windows/
找到Git-2.38.1-64-bit.exe 下载后开始安装

1,选择安装目录(不要有中文&空格) D:\Develop\Git
2,select Components(选择组件) 默认
3,select Start Menu Folder(选择开始菜单)默认
4,Choosing the default editor used by Git(选择编辑器-我用的Vscode)

//5,
Adjusting the name of the initial branch in new repositories(初始化新项目的主干名字)
Let Git decide(选择1用master)
Override the default branch name for new repositories(选择2用main) -choice it
  • 1
  • 2
  • 3
  • 4
//6,
Adjusting your PATH environment(调整Git的环境变量)
//命令权限正好,可以用Git Bash,CMD ,PowerShell
Git from command line and also from 3rd-party software -choice it
  • 1
  • 2
  • 3
  • 4

//下面是直接选择的内容(也是默认的)
7,use bundled OpenSSH
8,use the OpenSSH library
9.checkout Windows-style,commit Unix-style line endings
10,Use MinTTY(the default terminal of MSYS2)
11,Default(fast-forward or merge)
12,Git Credential manager
13,Enable file system caching(启用系统缓存)

14,configuring experimental options(唯一一个什么都不选择的,不体验创新功能)
15,Install-安装完成

//16,检查git是否安装成功,右键鼠标打开Git Bash
 git -v
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/730556
推荐阅读
  

闽ICP备14008679号