There are many VCS operations - like pulling the latest changes in the repository, switching branches, or rolling back to a previous commit - which are likely to cause the file-syncing software to trigger its syncing routine. Once it detects that you've changed something in there, it will go through its routine to determine which files have changed, and to re-sync the needed ones. Often, file-syncing software will watch the directories as you work, for any changes. If you'd like to access your repositories on various computers/devices simultaneously, and have a 'central backup' of your repository files, just use one of the many repository hosting services - like Github, GitLab, Bitbucket, etc.Įven Longer Answer: The key problem that all 'auto-syncing' software has, is: how do we determine when a file has been changed, and should be synced? Do we check the actual file contents, assuming that a file with the same name should be the same file? How about tracking name changes? How about when we transfer files from one computer to another, and permissions (or dates) might change? iCloud Drive (and other file-syncing services) is not aware of your VCS setup, and gets confused when you perform operations that make sweeping changes to directories - like switching branches or pulling changes. If you are a developer working with version control software, you are considered a "professional" - and you will find that iCloud Drive (as well as other file-syncing solutions) is not a robust solution that will work well with your version-controlled folders. Long Answer: iCloud Drive is a "consumer" product, meant for home users. for synced access and centralised safekeeping. To be safe, do not combine VCS and file-syncing services together for the same directories/files. Short Answer: Keep your repository folders outside of your iCloud Drive-synced folders, and you should be fine. Github repo cloned to synced iCloud drive on multiple computers In the meantime, is anyone here familiar with the issue I have described and can anyone point me in the right direction, please?Ĭan Git and iCloud Drive be effectively used together? So for now I will disable the ICloud Drive Desktop file sync option, and see if that will solve it. git not working well with ICloud Drive Desktop file sync. My assumption is that this must have something to do with. It could be that this problem especially appeared when I did some git ops like git commit git reset etc. I have observed this happening every now and then but today it was all over the place. 1-5) leading up to that duplicated filename with number 6. I also noted (but this is not shown on the pictures I provided) that sometimes the number suffix is a random say "6" for example with no sequence of number suffixes (e.g. * Edit: It is noteworthy that the 2 duplicates seem to stem from a previous time, sometimes even a month back (see "config 2" in. git folder.Įxample of duplicates appearing in. I also observed this behavior inside the. They then also show up in git status as untracked files.Įxample of duplicates appearing in worktree index Secondly, quite regularly, my existing files are suddenly seemingly duplicated - there are copies of them with number suffixes like for file foo there suddenly is foo 2 and for file bar there is bar 6. Yesterday, I backed up my MacBook Pro to MacOs Catalina 10.15.2 and this seems to have exacerbated the following pecularity I noticed this in my git initialized project folders:Ī lot of times when I deleted files from my local worktree they randomly start reappearing in the worktree (sometimes even a day or more later) as untracked files. I have noticed that the following happens every now and then for some time now. Talking about git project folders on my Desktop which is synced with ICloud Drive sync Desktop & Document Folders option enabled
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |