小编aca*_*828的帖子

git子模块同步不起作用

我正在尝试按照这些说明更改子模块上的遥控器.

修改和保存后.gitmodules,git submodule sync我的子模块没有改变,虽然我的.git/config文件已经更新,以匹配新的远程URL .gitmodules.

我也尝试过git submodule sync --recursive,rm -rf .git/modules/<mySubmodule>按照这个提示做的没有任何区别.事实上,git submodule sync再次运行后一个命令fatal: Not a git repository: ../.git/modules/<mySubmodule>.有小费吗?

我最初git submodule add git://<mySubmodule-url>根据git docs将子模块添加到项目中.

编辑

我甚至通过自制程序更新了git到v2.1.1,仍然没有.我也尝试从头开始,甚至在两个完全不同的子模块之间切换,但我仍然得到相同的结果.总共:

$> mkdir myRepo
$> cd myRepo
myRepo$> git init .
myRepo$> git submodule add https://<path/to/my/repo>.git
myRepo$> vim .gitmodules 
# change submodule url to https://<path/to/another/repo>.git
myRepo$> git submodule sync # updates my .git/config …
Run Code Online (Sandbox Code Playgroud)

git git-submodules

6
推荐指数
1
解决办法
5648
查看次数

GDB错误:"进程记录:当前体系结构不支持记录功能"

我正在尝试在GDB中执行反向执行,特别target record是按照此处的说明在gdb中运行我的程序之后执行,并触发以下错误:

Process record: the current architecture doesn't support record function.
Run Code Online (Sandbox Code Playgroud)

这似乎与此处讨论的问题相同,但从未得到解决.这是我的gdb版本信息:

alexcannon$ gdb -version
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin12.5.0".
For …
Run Code Online (Sandbox Code Playgroud)

gdb reverse-debugging

4
推荐指数
1
解决办法
914
查看次数

标签 统计

gdb ×1

git ×1

git-submodules ×1

reverse-debugging ×1