我有一个git文件夹,其中有两个内部文件夹(它们分别称为“ BackEnd”和“ FrontEnd”)。
当我执行“ git add”时。然后我得到“ git status”:
要提交的更改:(使用“ git rm --cached ...” 降级)
new file: BackEnd new file: FrontEnd
文件夹BackEnd和FrontEnd被添加为文件。我希望这些文件夹下的所有文件都将以递归方式添加,这意味着将添加这些文件夹中包含的所有文件。
你知道怎么做吗?
答案 0 :(得分:1)
确保这些文件夹没有自己的const params = {
TableName: 'personalizations',
KeyConditionExpression: 'accountId = :accountId',
FilterExpression: `websiteId IN (${websites.map(w => `:${w.websiteId}`).join(',')})`,
ExpressionAttributeValues: {':accountId': accountId}
}
for (const website of websites) {
params.ExpressionAttributeValues[`:${website.websiteId}`] = website.websiteId
}
const {Items: personalizations} = await docClient.query(params).promise()
子文件夹。
这会使它们成为嵌套git repo ,这意味着Git只会将它们添加为 gitlink (父存储库索引中的特殊条目)。
如果您不关心这2个嵌套存储库的历史记录,则只需删除.git
文件夹,然后重试:
.git