相关疑难解决方法(0)

如何让Git"忘记"一个被跟踪但现在位于.gitignore的文件?

有一个文件被跟踪git,但现在该文件在.gitignore列表中.

但是,该文件在git status编辑后会一直显示.你怎么强迫git完全忘掉它?

git gitignore git-rm

4888
推荐指数
25
解决办法
111万
查看次数

un-submodule一个git子模块

如何取消子模块git子模块(将所有代码重新放入核心)?

就像"应该"我一样,如"最佳程序"......

git git-submodules

359
推荐指数
8
解决办法
8万
查看次数

如何使外部存储库和嵌入式存储库作为通用/独立存储库工作?

我有一个大项目(让我们说A repo),它有一个来自的子文件夹B repo.当我承诺时,我会像下面那样遇到警告A repo

warning: adding embedded git repository: extractor/annotator-server
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint:   git submodule add <url> extractor/annotator-server
hint:
hint: If you added this path by mistake, you can remove it from the …
Run Code Online (Sandbox Code Playgroud)

git version-control github

18
推荐指数
5
解决办法
3万
查看次数