当我将这个分支推送到远程时,我有一个本地git分支。我看到我的本地分支嵌套在远程分支上:
本地分支结构:
source_code
|
|- images
|- fonts
|- index.html 远程分支结构:
source_code
|
|- images
|- fonts
|- index.html
|- source_code
|- images
|- fonts
|- index.html 当我尝试拉取它时,我在本地分支上看不到这个文件夹。
我不确定是什么导致了这个问题。有没有人能帮我这个忙,提前谢谢。
发布于 2020-10-03 09:42:49
您的目录结构
source_code
|
|- images
|- fonts
|- index.html
|- source_code (*)
|- images
|- fonts
|- index.html 因为某些人在复制(或Ctrl +拖放)或其他东西时出错了。解决方法:删除文件夹source_code (*),然后
git add .
git commit -m"Remove unnecessary folder"
git push -v一切都会好起来的。
https://stackoverflow.com/questions/64179828
复制相似问题