我有一个项目通过Dropbox与拒绝使用git的人共享。 但是,我喜欢git的分支和回滚特性。 目前,我的结构如下:
Dropbox
├── Project
│ ├── Folder
│ │ ├── file1
│ │ ├── file2
│ ├── .git
│ ├── .gitattributes
│ ├── .gitignore
我还将Project
文件夹作为bind mount
挂载在其他位置。
如何将git
文件夹移到Dropbox之外,仍然保持一切正常?
答案 0 :(得分:1)
从不存储.git
目录,Dropbox或其他类似的共享系统将损坏该目录(这是您当前的设置)。请参见clu's answer和IBrum's answer至Using Git and Dropbox together effectively?(请注意那里的答案;请参见注释!)