Git 出现的 error: could not lock config file H:\/.gitconfig
来源:互联网 发布:游戏模型制作软件 编辑:程序博客网 时间:2024/06/18 10:42
找的网址就是
http://superuser.com/questions/688563/trying-to-install-and-create-new-git-repository-for-first-time-i-think-disconn
意思就是,
Check if you have an %HOME% environment variable defined.
If that variable exists and refers to H:\
(instead of %USERPROFILE%
), then it will look for the global git config file in H:\.gitconfig
(meaning %HOME%\.gitconfig
).
Changing that %HOME%
variable to a local path like %USERPROFILE%
would solve that issue.
就是把环境变量%HOME%设置的目录下放置gitconfig文件,这个gitconfig文件可以在git的安装目录中找到。
最简单的做法就是把%HOME%设置为git的安装目录
0 1
- Git 出现的 error: could not lock config file H:\/.gitconfig
- error: could not lock config file E:/git/Git/%USERPROFILE%/.gitconfig: No such file or directory
- error: could not lock config file .git/config: 权限不够
- git创建:error: could not lock config file
- [已解决]brew update出错:error: could not lock config file .git/config: Permission denied
- 重装系统后,运行模拟器出现:加载的时候出现PANIC:could not open AVD config file
- IAR--Fatal Error[Lc002]: could not open file "*\build\config files\512KB_Pflash.icf" 的解决方法
- [ERROR] Could not create unix socket lock file /var/run/mysql/mysql.sock.lock
- solve the error : Could not open lock file /var/lib/apt/lists/lock
- linux之安装软件出现Could not open lock file /var/lib/dpkg/lock
- linux之安装软件出现Could not open lock file /var/lib/dpkg/lock
- pyramid/file-bucket ... rake aborted! Error stat'ing config file '/root/.gitconfig'
- 使用apt-get出现“Could not get lock...”的解决方法
- PANIC: Could not open AVD config file:
- PANIC: Could not open AVD config file:
- Could not open lock file/var/lib/dpkg/lock的解决办法
- Could not open lock file/var/lib/dpkg/lock的解决办法
- Could not open lock file/var/lib/dpkg/lock的解决发方法
- WEB客户端:浏览器和页面
- python爬虫实战之爬取知乎帖子
- ubuntu14.04 源码安装Elasticsearch
- 安卓开发中不显示APP标题和图标的方法
- thinkphp3.2.3 命名空间
- Git 出现的 error: could not lock config file H:\/.gitconfig
- 快速排序的各种方法
- 201509-1_数列分段
- iOS 开放之asyncsocket 的 简明教程
- virtualbox--错误
- 最小生成树的Kruskal算法
- python-简单的makefile生成程序-没有注释
- matlab神经网络工具箱创建神经网络
- set