解决git下载时 is not a git command. See ‘git --help‘ 方法

一、问题描述

使用git下载github项目时出现 is not a git command. See ‘git --help’.问题

二、解决方法

1.引入库

代码如下(示例):

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
import  ssl
ssl._create_default_https_context = ssl._create_unverified_context

2.解决方法

更新git:

git clone https://github.com/git/git.git
完成后即可完美使用:
C:\Users>git clone https://gitclone.com/github.com/527515025/springBoot.git
Cloning into 'springBoot'...
remote: 对象计数中: 1728, 完成.
remote: 压缩对象中: 100% (866/866), 完成.
Re
Receiving objects: 100% (1728/1728), 817.09 KiB | 2.70 MiB/s, done.
Resolving deltas: 100% (526/526), done.

总结

Git 是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目,新手刚使用时可能会遇到上述问题,希望能帮助到你。

上一篇:mysql5.6升级及mysql无密码登录


下一篇:2021-07-30