且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

忽略git中已删除的文件?

更新时间:2023-12-04 19:39:22

我不会尝试忽略删除状态,而是:

Rather than trying to ignore the "delete" status, I would:


  • 不删除目录及其中的文件

  • 拆分 Git存储库一分为二,有效地将要删除的子目录分离到单独的Git存储库中。

  • 继续使用主要的Git存储库。

  • not remove the directory and those files in it
  • split the Git repo in two, effectively detaching the subdirectory to be removed into a separate Git repository.
  • go on with the main Git repo.

注意:这可能与当前与SVN同步的Git存储库不兼容。

Note: that may not be compatible with a Git repo currently synchronized with a SVN one.