git add-i 0 [main] p-6ren">
gpt4 book ai didi

git - 无法使用 "Git add -i"

转载 作者:行者123 更新时间:2023-12-04 16:36:02 25 4
gpt4 key购买 nike

试图将文件修补到最后一次提交,所以我运行“git add -p”和“git add -i”,但收到以下错误:

Output

即:

D:\Working\test>git add-i
0 [main] perl 375 child_copy: stack write copy failed, 6xFFFFC480..8x10000000e, done 6444523849, windows pid 15080, Win32 error 5
[main] perl 375 child_copy: stack write copy failed, exFFFFC480..9x1000eeeee, done 6444523049, windows pid 15880, Win32 error 5
481 [main) perl 375 dofork: child 376 - pid 13800, exitval ex183, errno 11
Can't fork, trying again in 5 seconds at C:/Program Files/Git/ming64/share/per15/Git.pm line 1647.
main) perl 375 dofork: child 377 pid 4888, exitval ex103, errno 11 Can't fork, trying again in 5 seconds at C:/Program Files/Git/mingw64/share/per15/Git.pm line 1647.

D:\Working\test>git add -p
0 [main] perl 9 child_copy: stack write copy failed, exFFFFC460..ex1eeeeeeee, done 6444523849, windows pid 7892, Min32 error S ses [main] perl 9 dofork: child 10 pid 11876, exitval ex183, errno 11
Can't fork, trying again in 5 seconds at C:/Program Files/Git/mingw64/share/per15/Git.pm line 1647. 5033325 [main] perl 9 child
copy: stack write copy failed, exFFFFC460..9x100000000, done 6444523849, windows pid 7892, Win32 error 5 5033826 [main] perl 9 dofork: child 11 - pid 12220, exitval ex103, errno 11 Can't fork, trying again in 5 seconds at C:/Program Files/Git/ming 64/share/per15/it.pm line 1647.

尝试卸载并安装 Git,但问题仍然存在。

最佳答案

Thanks to comment of @torek, I managed to use the commands after installing Per

你不应该有。

  1. Git for Windows 的最新版本不再将 Perl 用于 git add (mingw64/libexec/git-core/git-add.exe)。我是 rewritten in C since Git 2.25, Q1 2020
  2. perl.exe 是 Git for Windows 发行版的一部分:确保您的 %PATH% 包括 C:\path\to\Git\usr\bin

无需安装 Perl 即可运行 Git。


2 年后(2022 年第一季度),随着 Git 2.36(2022 年第二季度),单键交互模式下对“git add -i( man ) 的 C 重写仍有收尾工作。

参见 commit 0f584decommit 6606d99commit e4938cecommit 02af15dPhillip Wood (phillipwood)(2022 年 3 月 16 日)。
请参阅 commit 32f3ac2Junio C Hamano (gitster)(2022 年 3 月 9 日)。
(由 Junio C Hamano -- gitster -- merge 到 commit d723492 ,2022 年 3 月 30 日)

terminal: restore settings on SIGTSTP

Signed-off-by: Phillip Wood

If the user suspends git while it is waiting for a keypress reset the terminal before stopping and restore the settings when git resumes.
If the user tries to resume in the background print an error message (taking care to use async safe functions) before stopping again.
Ideally we would reprint the prompt for the user when git resumes but this patch just restarts the read().

The signal handler is established with sigaction() rather than using sigchain_push() as this allows us to control the signal mask when the handler is invoked and ensure SA_RESTART is used to restart the read() when resuming.

关于git - 无法使用 "Git add -i",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69733263/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com