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

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

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

  •  
  •   guyeu · Feb 25, 2021 · 4332 views
    This topic created in 2086 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
    ruike007
    Feb 25, 2021
    1
    弄个别的同步软件呀,syncthing/ nextcloud 等
    gaopu
    gaopu
    Feb 25, 2021
    2
    为什么要用 icloud 同步 git 的代码,为什么不用 github 等类似服务同步 git 的代码
    FurN1
    FurN1
    Feb 25, 2021 via iPhone
    3
    在网盘里直接放 repo 出大问题!需要用工具来把网盘配置成 git remote,来避免 git 和网盘同时同步文件造成的冲突。

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