【发布时间】:2020-10-18 23:53:49
【问题描述】:
我在下面创建了一个 rustwasm 项目:
cargo generate --git https://github.com/rustwasm/wasm-pack-template
wasm-pack build
npm init wasm-app www
我在 www 文件夹中做了一些工作,但每当我尝试提交到 github 时,它都不会添加 www 文件夹。
我已经检查了 git ignores 并且它在任何地方都没有被忽略。有人知道为什么它不会被添加吗?
这就是I followed。
git status的输出:
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: www (modified content)
【问题讨论】:
-
请尝试输入
git status --ignored并检查www文件夹是否真的被忽略 -
它不在列表中
-
当你输入
git add www时会发生什么? -
没有输出,但是查看
git status后没有添加 -
您应该会在未跟踪内容或已跟踪(准备提交)内容中看到
www文件夹。你能看到吗?
标签: git github npm rust rust-wasm