jps*_*kgc 2 git github reactjs
我将 go & react 代码推送到了 github。
Go 代码已成功提交,但 React 代码未成功提交。
React 内容是由create-react-app.
article
? api
? ? main.go
? client
? React content made by create-react-app
Run Code Online (Sandbox Code Playgroud)
这是目标github
https://github.com/jpskgc/article
我尝试了以下命令,但没有解决。
error: the following file has staged content different from both the
file and the HEAD:
client
(use -f to force removal)
$ git rm --cached client -f
rm 'client'
Run Code Online (Sandbox Code Playgroud)
我也尝试了以下命令,但问题没有解决
$ rm -rf client/.git
Run Code Online (Sandbox Code Playgroud)
client 文件夹的内容将在 github 中提交。但实际上没有承诺。
Mot*_*ets 11
问题是两个目录都是 git 存储库,在这种情况下你会有一个submodule。
您可以看到此提交添加了一个子模块
Subproject commit 395ee793f20a65d483a50cb1d11b67e7f80729d0。
要
删除 git 子模块但保留文件,请遵循此说明。
mv client subfolder_tmp
git submodule deinit client
git rm --cached client
mv subfolder_tmp client
git add client
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3244 次 |
| 最近记录: |