【问题标题】:Move a git repository outside Dropbox folder [duplicate]将 git 存储库移到 Dropbox 文件夹之外 [重复]
【发布时间】:2020-04-13 11:37:18
【问题描述】:

我有一个通过 Dropbox 与拒绝使用 git 的人共享的项目。 但是,我喜欢 git 的分支和回滚特性。 目前,我的结构如下:

Dropbox
├── Project
│   ├── Folder
│   │   ├── file1
│   │   ├── file2
│   ├── .git
│   ├── .gitattributes
│   ├── .gitignore

我还将Project 文件夹作为bind mount 安装在其他地方。 我怎样才能将 git 文件夹移到 Dropbox 之外,并且仍然保持一切正常?

【问题讨论】:

    标签: git


    【解决方案1】:

    切勿将.git 目录存储在Dropbox 或其他类似共享系统会损坏它的位置(这是您当前的设置)。请参阅clu's answerIBrum's answerUsing Git and Dropbox together effectively?(注意那里接受的答案;请参阅 cmets!)

    【讨论】:

      猜你喜欢
      • 2020-09-19
      • 1970-01-01
      • 2023-03-03
      • 1970-01-01
      • 2015-01-13
      • 2021-07-18
      • 2013-10-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多