IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 开发工具 -> 实测有效:windows下文件名太长的问题,git filename too long -> 正文阅读

[开发工具]实测有效:windows下文件名太长的问题,git filename too long

只需三步即可解决改问题:

第一步:修改注册表

Step 1. Open the Run dialog box by pressing Windows + R keys simultaneously from the keyboard.

Step 2. In the Run box, type the following and hit Enter from the keyboard to open the Registry Editor window:

regedit

在这里插入图片描述
在这里插入图片描述

Step 3. In the Registry Editor window, navigate to the following path from the left side pane:-

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

在这里插入图片描述

Step 4. On the right side of the FileSystem folder, look for the DWORD (32-bit) Value LongPathEnabled. Double-click on it to open its settings. Set Value data as 1.
在这里插入图片描述

Step 5. Click OK.

第二步:修改策略组

Step 1. Open Local Group Policy Editor.

To do so, simultaneously press Windows + R keys from the keyboard to launch the Run command box. In the Run box that appears, type gpedit.msc and press Enter from the keyboard.
在这里插入图片描述
在这里插入图片描述

Step 2. In the Local Group Policy Editor window that opens, navigate or browse for the following path from the left side pane:-

Computer Configuration > Administrative Templates > System > Filesystem

在这里插入图片描述

Step 3. On the right-side pane of the Filesystem folder, double click on the policy name, Enable Win32 long paths to open its settings.

The full description of this policy says that “Enabling Win32 long paths will allow manifested win32 applications and Windows Store applications to access paths beyond the normal 260 character limit per node on file systems that support it. Enabling this setting will cause the long paths to be accessible within the process.”

在这里插入图片描述

Step 4. Select the Enabled option.

Step 5. Click Apply.

Step 6. Click OK.

第三步:

命令行执行git config core.longpaths true

完成以上步骤后重启电脑即可

参考文章:

  1. https://gearupwindows.com/resolved-destination-path-too-long-when-moving-copying-a-file/
  2. https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows
  3. https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell
  开发工具 最新文章
Postman接口测试之Mock快速入门
ASCII码空格替换查表_最全ASCII码对照表0-2
如何使用 ssh 建立 socks 代理
Typora配合PicGo阿里云图床配置
SoapUI、Jmeter、Postman三种接口测试工具的
github用相对路径显示图片_GitHub 中 readm
Windows编译g2o及其g2o viewer
解决jupyter notebook无法连接/ jupyter连接
Git恢复到之前版本
VScode常用快捷键
上一篇文章           查看所有文章
加:2022-06-26 17:02:52  更:2022-06-26 17:03:30 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年3日历 -2024/3/29 5:09:10-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码