拼车信息请发到 /go/cosub 节点。

如果没有发送到 /go/cosub,那么会被移动到 /go/pointless 同时账号会被降权。如果持续触发这样的移动,会导致账号被禁用。
guyeu
V2EX  ›  iCloud

用 iCloud 同步 Git 目录遇到的问题

  •  
  •   guyeu · Feb 25, 2021 · 3858 views
    This topic created in 1929 days ago, the information mentioned may be changed or developed.

    迫于曾经磁盘故障数据丢失的血泪教训,换电脑之后直接把重要数据放进了 iCloud 同步目录,然后切分支的时候,代码目录出现了大量的filename 2.ext文件及文件夹,想知道有啥办法可破

    11 replies    2021-02-26 22:57:34 +08:00
    ruike007
        1
    ruike007  
       Feb 25, 2021
    弄个别的同步软件呀,syncthing/ nextcloud 等
    gaopu
        2
    gaopu  
       Feb 25, 2021
    为什么要用 icloud 同步 git 的代码,为什么不用 github 等类似服务同步 git 的代码
    FurN1
        3
    FurN1  
       Feb 25, 2021 via iPhone
    在网盘里直接放 repo 出大问题!需要用工具来把网盘配置成 git remote,来避免 git 和网盘同时同步文件造成的冲突。

    我用的是 dropbox,用这个工具来设置 git remote: https://github.com/anishathalye/git-remote-dropbox 至于 icloud,应该也有类似工具
    FurN1
        4
    FurN1  
       Feb 25, 2021 via iPhone
    @IgniteWhite 我搜索了一下,没有找到能以 iCloud 做 remote 的办法或者工具。
    guyeu
        5
    guyeu  
    OP
       Feb 25, 2021
    @gaopu
    @IgniteWhite 因为有大量的不被 git 管理的文件(未提交内容、私人脚本、IDE 配置等)。
    FurN1
        6
    FurN1  
       Feb 25, 2021 via iPhone
    @guyeu 嗯嗯,我是把配置文件放到 github,私人项目放到 dropbox,都用 git
    dingwen07
        7
    dingwen07  
       Feb 26, 2021 via iPhone
    不要用网盘同步代码
    既然有 git 那也不需要网盘备份了吧
    JasperYanky
        8
    JasperYanky  
       Feb 26, 2021
    不同步 .git 文件夹?
    类似这样 https://github.com/HaoChuan9421/nosync-icloud
    PPing520
        9
    PPing520  
       Feb 26, 2021
    同步镜像库
    ooops
        10
    ooops  
       Feb 26, 2021
    IDE 配置可以提交啊,反正你自己的分支 然后再 reset 也行。怕别人看到你自己 fork 下不就行了。
    WillBC
        11
    WillBC  
       Feb 26, 2021 via iPhone
    我是以 GitHub 为主,iCloud 为辅,本地为源。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1404 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 23:58 · PVG 07:58 · LAX 16:58 · JFK 19:58
    ♥ Do have faith in what you're doing.