Py学习  »  Git

如何删除文件夹,但将所有子文件夹和文件仅保留在一个git分支中?

Gremious • 5 年前 • 1444 次点击  

我正在建立一个git分支,它需要与其他分支具有不同的目录结构。这些文件都是一样的,但是,它们基本上都必须上移一级。有很多文件,我不知道如何使用git将它们一起移动。

目前看来是这样的:

Root Directory
    |
    - Main Folder
    |    |
    |     - Sub Folder 1 with a lot of subfolders and files
    |    |
    |     - Sub Folder 2 with a lot of other subfodlers and files
    |
    - A couple of random files

我想结束的是:

Root Directory
    |
    - Sub Folder 1 with a lot of subfolders and files
    |
    - Sub Folder 2 with a lot of other subfodlers and files
    |
    - A couple of random files

我该怎么做?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/55360
 
1444 次点击  
文章 [ 2 ]  |  最新文章 5 年前