ARTICLE DETAIL

资讯详情

深耕网站视觉设计与运营推广的一线实战洞察。

如何下载并安装Git软件

如何下载并安装Git软件 诸神缄默不语-个人技术博文与视频目录文章目录1. 下载1. 官网2. 直接下载2. 安装2. 本文撰写过程中参考的网络资料1. 下载1. 官网Git软件官网https://git-scm.com/Windows软件地址https://git-scm.com/downloads/win在这个网址里面可以直接选择下最新版的64位软件。2. 直接下载我已经下载了Windows 10/11 64位可用的2.55.0.5版也可以直接下载我用夸克网盘给你分享了「Git-2.55.0.5-64-bit.exe」点击链接或复制整段内容打开「夸克APP」即可获取。 链接https://pan.quark.cn/s/9b54518a85ee 提取码rAyq2. 安装基本上一路无脑点确定下去选择下载路径这一步是选择要下载哪些组件Additional IconsOn the Desktop添加桌面图标建议勾选Windows Explorer integration这里是勾选用bash命令行还是GUI图形界面的建议都选上以后想用啥用啥Git LFS Large File Support大文件支持建议勾选Associate .git* configuration files with the default text editor 设置.git后缀文件默认打开方式Associate .sh files to be run with Bash 设置.sh后缀文件默认打开方式Check daily for Git for Windows updates 每天检查版本更新(NEW!) Add a Git Bash Profile to Windows Terminal 将Git Bash添加到Windows Terminal中这个勾选了以后你就可以跟打开powershell或者cmd一样把git bash当windows terminal一样打开了要不然如果你想执行Git命令还得专门打开Git bash自己的窗口(NEW!)Scalar (Git add-on to manage large-scale repositories) Windowsscalar这个工具我也没用过以后用了我再介绍。这是官方文档https://git-scm.com/docs/scalar设置开始快捷按钮选择默认编辑器我喜欢用VSCode所以选择了VSCode。设置默认branch名直接默认就可以设置环境路径选择默认的就得了选择SSH执行文件建议用默认选项就行新版2.55.0.5不用选这一步了选择HTTPS传输后端这个看你用Git的用途如果你是用的公司Git服务器有用内部CA证书的必要就选“the native windows Secure Channel library”。否则没有区别选哪个都行选默认项就行。配置换行符转换设置……这事有点复杂总之记住在Windows上直接安装默认的第一项就可以。配置终端模拟器选默认项即可设置git pull的默认行为总之也选默认项就行了选择凭证管理工具选默认项即可设置其它选项启用文件系统缓存能提速建议选择启用符号链接……这玩意也有点麻烦建议不了解就别选了然后就可以美美等待安装安装完成后需要先设置git config --global user.name 您的用户名 git config --global user.email 您的邮箱然后就可以开始进行Git操作啦直接使用命令行的教程可参考Git命令行入门_命令行运行git-CSDN博客在VSCode中使用的教程可参考VSCode上的Git使用手记持续更新ing…_vscode staged changes-CSDN博客2. 本文撰写过程中参考的网络资料Can anyone tell me what this bottom option does? (Git Bash installation) : r/webdevBeginner git user deciding between Notepad or VS Code as text editor : r/gitgit - What’s the difference between OpenSSL and the native windows Secure Channel library - Stack OverflowLearn how to install and use git on Windows | by Shamli Singh | MediumGit安装全教程Win11 - 知乎
返回列表