我正在尝试创建react应用,并且我有一个nodejs(快速)后端
这是指向repo的链接 如您在回购中所见,文件客户端为空
,我无法添加(登台)客户端文件
当我做git add.
然后git status
我收到以下消息
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in
submodules)
modified: client (modified content, untracked content)
modified: package.json
no changes added to commit (use "git add" and/or "git commit -a")
我尝试了git add .
,git add client
但没有任何效果,我无法将客户端文件推送到github
ls -all
返回此:
total 55
drwxr-xr-x 1 user 197121 0 Jun 20 16:38 ./
drwxr-xr-x 1 user 197121 0 Jun 20 15:11 ../
drwxr-xr-x 1 user 197121 0 Jun 21 10:24 .git/
-rw-r--r-- 1 user 197121 15 Jun 20 15:18 .gitignore
drwxr-xr-x 1 user 197121 0 Jun 20 15:57 client/
drwxr-xr-x 1 user 197121 0 Jun 20 15:14 node_modules/
-rw-r--r-- 1 user 197121 362 Jun 20 17:14 package.json
-rw-r--r-- 1 user 197121 14290 Jun 20 15:14 package-lock.json
-rw-r--r-- 1 user 197121 389 Jun 20 15:17 server.js
答案 0 :(得分:1)
尝试执行
git rm -rf --cached client
和
git add client
在客户端目录中。