Git将文件夹放入文件夹

编程入门 行业动态 更新时间:2024-10-08 05:30:50
本文介绍了Git将文件夹放入文件夹 - 在存储库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 所以,我对整个GitHub的事情都很陌生。因此,我的回购看起来像一堆乱七八糟的东西。 无论如何,我想尽一切努力来清除它,所以我把它拉下来,将文件夹系统更新到我想要的状态,并将其重新推回。 无论如何,新文件夹在里面显示了子文件夹。但是,子文件夹仍显示在我的存储库中。我宁愿他们在这些文件夹中,这样我就可以更好地组织起来。有没有办法做到这一点,并会有人介意通过它吗?

提前给予帮助。 :)

解决方案

由于上述问题由@Healsgood解释。 <最简单的解决方案:

由于本地回购以期望的形式出现,并且最近还有其他更改。首先删除远程仓库(当前仓库),创建一个名称与本地相同的新远程仓库,然后 push ( git push )更改为远程。您将拥有相同/所需的远程回购版本。

干杯!!

So, I'm pretty new to the whole GitHub thing. Consequently my repo looks like a messy pile of shit. Anyway, I wanted to put in a little effort to clear it up, so I pulled it down, updated the folder system to how I wanted it, and pushed it back up. Anyway, the new folders are showing there with the sub-folders inside. However, the sub-folders are still showing in my repository. I would rather they were in these folders so I can keep it a bit better organised. Is there anyway to do this and would someone mind walking me through it?

Cheers for the help in advance. :)

解决方案

As the Question is explained above by @Healsgood.

The easiest solution:

Since the local repo is in the desired form and also latest with additional changes. First delete the remote repo(current), create a new remote repo with the same name as in local and push(git push) the changes to remote. You will have same/desired version of remote repo.

Cheers!!

更多推荐

Git将文件夹放入文件夹

本文发布于:2023-11-24 14:06:50,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件夹   放入   Git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!