Git将文件夹放入文件夹 - 在存储库中 [英] Git putting folders in folders - In a repository

查看:197
本文介绍了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将文件夹放入文件夹 - 在存储库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆