我只是想问一下这个错误的含义是什么?
error: fsmonitor_ipc__send_query: unspecified error on '.git/fsmonitor--daemon.ipc'
Run Code Online (Sandbox Code Playgroud)
我试图找到与此情况类似的内容,但由于某种原因,我看到的只是另一个非常相似的行错误,但没有解释原因。我在使用 Git Bash 时遇到了这个问题。我正在尝试使用 Bash 终端,因为我希望在使用 VS Code 时分隔不同的窗口。希望这能为其他人提供参考。
我正在使用一台装有 Windows 操作系统的工作 PC,并且习惯于使用 ubuntu 操作系统进行 Rails 开发。我在 VSCode 上使用 wsl 作为 ubuntu 正确安装了所有内容,在 Windows 上使用 git 正确安装了所有内容,但问题是源代码控制面板没有检测到任何内容,它只是显示以下内容:
。
我该如何解决这个问题?
这是我的安装参考。
https://code.visualstudio.com/
https://learn.microsoft.com/en-us/windows/wsl/install
https://git-scm.com/download/win
当我输入: git push origin master
错误 :
fatal: unable to access 'https://github.com/rashmitashenoy/slot9io.git/': getaddrinfo() thread failed to start
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
我在 Windows 上运行 OpenSSH,使用自 Autumn/Fall Creators Update 以来包含的内置 OpenSSH。
我在 PowerShell 中使用 ssh 效果很好,但 Visual Studio 远程开发(我猜 Windows 版的 Git?)没有使用我的 OpenSSH。相反,他们似乎使用 MinGW 的适用于 Windows SSH 客户端的 Git。这意味着我的所有ssh-add
ed 键都不存在于 VS 或 Git 中ssh-agent
。
如何让 Visual Studio(也许还有 Git?)使用内置的 OpenSSH 安装,以便我可以ssh-agent
在它们之间使用相同的功能?
以下是 SSH 在 PowerShell 中的样子:
c:\Users\myusername
> Get-Command ssh
CommandType Name Version Source
----------- ---- ------- ------
Application ssh.exe 7.7.2.1 C:\WINDOWS\System32\OpenSSH\ssh.exe
c:\Users\myusername
> Get-Command ssh-agent
CommandType Name Version Source
----------- ---- ------- ------ …
Run Code Online (Sandbox Code Playgroud) 我Git-2.34.0-64-bit.exe
从Windows 版 Git安装了 Git ,并选择了大部分默认选项。安装表示它将使用“git-credential-manager-core”,这似乎是它的最新版本。
完成安装并重新启动后,当我导航到包含 GIT 存储库的目录并git status
从 cmd 行键入时,它工作正常。
但当我输入时,git fetch
它说:
git:
credential-manager
不是 git 命令。最相似的命令是credential-manager-core
那么,为什么它不使用凭证管理器的核心版本,或者更确切地说,我需要做什么才能让它使用它?
谢谢
我创建了一个新的 Windows Server 2022 VM,安装了所有待处理的更新,然后安装了最新版本的 Office 365 和 Visual Studio 2022。
Edge已经是系统默认浏览器:
当我尝试从 Azure DevOps 克隆存储库时,会使用 IE 作为浏览器弹出 Git Credential Manager 窗口:
IE 不好,因为它不能正确显示登录页面。如何强制 GCM 使用 Edge?
我在命令行上的 Windows 版 Git 和 Visual Studio 中尝试过此操作,但没有什么区别。
.gitconfig
我在没有文件(默认行为)和显式最小文件的情况下尝试了此操作.gitconfig
,但没有任何区别。
[user]
name = <me>
email = <me>
[credential]
helper =
helper = manager
[credential "https://dev.azure.com"]
usehttppath = true
Run Code Online (Sandbox Code Playgroud) 我有一个有趣的错误,在使用git for windows(版本2.12.0.windows.1)时不断出现.我最近将我的Windows配置文件目录从一个位置迁移到另一个位置.
对于一些git命令,我得到错误:
error: could not lock config file C:/Users/<my old profile>/.influxdb/.gitconfig: No such file or directory
error: could not lock config file C:/Users/<my old profile>/.influxdb/.gitconfig: No such file or directory
注意:此错误总是出现两次,例如,如果我尝试这样做 git config --global diff.tool p4merge
有趣的是,它正在寻找的这个文件夹不存在,如果我git config -l --show-origin
用来查看git获取它的设置,它没有提到这个路径,如果我查看任何CONFIG
文件,我看不到对此的引用不存在的道路.
git存储对这条旧路径的引用在哪里?我需要更新它,因为我认为这个错误阻止了一些命令工作.
我正在尝试在新的Windows 7机器上使用Git Extensions.我以前做了很多次,但从未遇到过这个问题.
Git Bash正在工作,我成功地克隆了一个存储库.
但是转到Git Extensions,打开repo并执行pull会给我以下错误消息:
"C:\Program Files (x86)\Git\bin\git.exe" pull --progress "origin"
error: cannot spawn git: Function not implemented
Done
Press Enter or Esc to close console...
Run Code Online (Sandbox Code Playgroud)
我的设置非常普通.Git Extensions启动检查所有通过.(这与常见的无效路径问题类似,但问题不同.)
你知道导致这个问题的原因吗?
在gitlab的私有存储库中,当我运行git clone git@git.privateserver.local:group/project-submodule.git
克隆成功完成时.
作为克隆过程的一部分,我被要求提供私钥的密码.
当我运行
submodule update --init "group/project-submodule"
它失败时:
许可被拒绝,请再试一次.许可被拒绝,请再试一次.权限被拒绝(publickey,gssapi-keyex,gssapi-with-mic,密码).致命:无法从远程存储库读取.
在尝试处理子模块时,我没有被要求为我的私钥密码.
(我不得不匿名)
致命:将'git@git.privateserver.local:group/project-submodule.git'克隆到子模块路径'C:/ Users/user/repos/project-module/project-submodule'失败
我检查了.gitmodules
文件,它包含正确的数据(我认为可以通过错误消息确认).
引起我注意的主要因素是我没有被问到我的私钥密码.甚至更奇怪,因为当我git clone
直接使用时,它会按预期运行.
我也已经通过访问进行了诊断ssh
并且它询问了我的密码,就像我执行拉或克隆时发生的那样
使用git for windows"git version 2.16.2.windows.1"
使用 GfW 我意外地创建了一个名称以 开头的分支<U+0096>
,这似乎是一个 unicode 控制字符。
$ git branch
features/#72_some_branch
* features/#73_another_branch
master
<U+0096>features/#73_another_branch
Run Code Online (Sandbox Code Playgroud)
现在,为了纠正这个错误,我需要知道如何在 git bash 中转义它。我尝试使用众所周知的 Alt+Num 组合键,但这不起作用。