dropbox-style svn/git/mercurial?: auto-commit upon change and auto-checkout

前端 未结 3 1733
醉话见心
醉话见心 2021-01-18 00:04

I\'m not a professional programmer, but I do some small solo projects and I would like some versioning and syncing, but going through the process of remember to commit and c

3条回答
  •  隐瞒了意图╮
    2021-01-18 00:40

    So what I ended up doing was using cloud sync for synology, (but I was using btsync in the past) to sync my code bases between several computers. This creates the immediate 'auto-sync' feature I was looking for and it's completely transparent to me. (This also takes care of the problems with having bloated auto-commits as mentioned above) This way you get versioning and auto-sync (or be forced to commit daily, or worry about having to commit when you need to leave your computer, or have to deal with any commit errors that come up before you close your laptop, or most of all have to rely one's fallible memory to remember to commit daily (big one for me!)). One SHOULD NOT be using git to sync (git is meant to version points in time, not sync). Note: just watch how you sync your .git folder so you dont break your work on one machine from the other via sync. If you blacklist .git, you can still clone the repo and push from either machine (but still not break things by syncing .git from one to the other).

提交回复
热议问题