git - git subtree 命令将文件添加到父树
问题描述
我运行了这个命令:
git subtree add --prefix=config --squash git@github.com:user/repo.git master
在根文件夹中,我提交了更改并推送到远程。配置文件夹中的子树文件已包含在内。
我应该 .gitignore 配置目录吗?为什么它在父 git repo 中包含子树文件?
解决方案
推荐阅读
- python - 熊猫根据分组创建新列
- php - 如何安全发送邮件正文中的任何超链接?
- php - target="_blank" 继续下载图片而不是打开其他页面
- java - Spring boot @Cacheable - 如何设置刷新间隔/清除间隔?
- laravel - 如何在 Windows 中使用 curl 和 xampp?
- android - Amazon S3 TransferUtility 在应用程序关闭时停止,即使在 WorkManager 中也是如此
- angularjs - 只需搜索“a”关键字,结果必须包含“å”等字母
- java - ECPoint 坐标系在 Bouncy Castle 中如何工作?
- docker - 带有 zip 文件的 Docker ADD 文件夹导致错误处理 tar 文件(退出状态 1):意外 EOF
- reporting-services - SSRS 根据某个值将背景更改为红色,否则将恢复为备用行颜色