-
先 “yarn create vite main_dir” 创建了一个 vite 项目,然后 "cd main_dir/" 并 “git init”,初始化这个 git 文件夹。 然后 “forge init contracts”,安装 foundry 项目,此时 contracts 文件夹也是一个 git 文件夹。 但是我在 main_dir 里面,“git add” 和 “git commit” 之后,再 “git ls-files” 查看文件,只能看到 contracts 文件夹,并不能看到 contracts 下面的文件。 请问如何才能 “git ls-files” 之后,看到 contracts 文件夹下面的文件? |
Beta Was this translation helpful? Give feedback.
Answered by
linghuccc
Aug 15, 2024
Replies: 1 comment
-
只需要删除 contracts 文件夹里面的 .git 文件夹即可 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
linghuccc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
只需要删除 contracts 文件夹里面的 .git 文件夹即可