Installing and Configuring Git on Windows
I. Download Git for Windows, homepage: http://gitforwindows.org/ Click “Download” on the page to enter the download list. You can choose a version based on personal preference. Here we choose to download the latest version: Git-1.8.3-preview20130601.exe. II. Installation After downloading, double-click to start the installation: 1. Select all options except AdvancedXXX 2. Choose “Use Git Bash only” 3. Choose
目录18 个章节
I. Download
Git for Windows, homepage: http://gitforwindows.org/
Click “Download” on the page to enter the download list. You can choose a version based on personal preference.
Here we choose to download the latest version: Git-1.8.3-preview20130601.exe.
II. Installation
After downloading, double-click to start the installation:
1. Select all options except AdvancedXXX

2. Choose “Use Git Bash only”

3. Choose “Checkout as-is, commit as-is”

4. Wait for the installation to complete.
III. Configuration
1. After installation, there will be a Git Bash icon on the desktop

Double-click to enter the Git Shell interface

2. Configure Name and Email
Command format:
git config --global user.name "your name"
git config --global user.email "your email address"

3. Generate Public/Private RSA Key
Command format:
ssh-keygen -C "your email address" -t rsa

Note the red numbers marked in the figure:
-
Set the save location for the Public RSA Key; press Enter directly to use the default address;
-
Set a password and enter it again to confirm (setting one is not recommended here, for convenience of local use)
-
Save path of the Public RSA Key: c:\users\username.ssh\id_rsa.pub
-
Provide the Public Key to Github
Please first register a github account, Home Page: https://github.com/ . Then go to the Account Settings page, open SSH Keys, and click “Add SSH Key”. Open c:\users\username\.ssh\id_rsa.pub, copy all of its contents into the input box corresponding to Key, and click “Add Key”.

IV. Clone Repositories
1. Enter the Git Workspace, right-click and choose Git GUI Here:

2. Choose “Clone Existing Repository”

3. Enter the address of the repository to clone and the save directory.

Note that:
- Repository address format:
git@github.com:your resp address - The last level of the save directory cannot Exist
- The blue line in the figure marks your resp address, which can be seen in Account Settings-->Respositories on github.com, as shown by the red circle in the figure below.

4. Enter the password as prompted (the one set in item 3 of section III); you may need to enter it multiple times.

### 5. Clone succeeded.

V. Simplification
The method introduced in section IV is relatively complicated, especially with frequent password entry. Below is a simpler method:
-
Definitely do not set a password!!!
-
Open Git Bash Here in the Git Workspace
-
Enter ssh git@github.com and press Enter; the following prompt indicates that the git@github.com site is already trusted.

About
For more interesting operations, please follow my WeChat official account: DealiAxy Every article is also collected on my blog: blog.deali.cn
_EOF_
Installing and Configuring Git on Windows
- 本文作者:
- 程序设计实验室
- 版权声明:
- 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
相关文章
在 Windows 11 上使用 Hyper-V 虚拟机
WSL开了Hyper-V,VMware直接报废,嵌套虚拟化?做梦。改用原生Hyper-V管理器,开启倒简单。Windows Admin Center登录失败,懒得折腾,直接用控制台。
2026-03-10 · Windows · 约 1 分钟
Kali-Linux-on-WSL2安装与简单配置指南
Windows在更新到2004版本之后正式开启了WSL2的支持,这次是完整的运行在HyperV虚拟机中的Linux系统了,可以称之为真正的Linux了,难不成Windows即将成为最好的Linux发行版? 实际体验下来还是可以的,不过小问题不少,爱折腾的同学安排一手,对提高Windows平台下的开发体验还是有很大帮助的~ Kali on WSL2安装指南 升级系统 首先检查当前系统版本,按Win+
2021-12-18 · Windows · 约 1 分钟
使用EarTrumpet代替windows默认的音量调节功能
Windows 默认的音量调节功能挺弱的,要分别调节各个应用的音量得进入二级菜单,麻烦得很。有了这个功能就很方便了
2025-01-26 · Windows · 约 1 分钟
在Windows上将git与ssh-agent搭配使用
Windows git 还自带 ssh?真是老土的兼容性思路。一行配置就能解决,不过得先管好 ssh-agent 的连接。 ProxyCommand 居然又添乱,难怪老出毛病。
2025-08-21 · Windows · 约 1 分钟
讨论
共 0 条加载评论中…
