Syncronizing git repositories in two different machines

Hello everyone,

I am using Insync on two different computers under Linux (Ubuntu 24.04 and Pop!Os 22.04). I am synchronizing folders that are git repositories.

This is the situation that I am facing, and I am not sure if this is the intended behaviour.

  1. Edit git repository on Computer A and push it to github
  2. Insync synchronizes the change into my google cloud
  3. Open computer B and check git status
  4. To get consistent files across machines, I need to discard the changes in computer B.

Is this the better way to synchronize git repos with two different computers and with the cloud? On top of that, how can I ignore the .git folder to not occupy the storage in my cloud?

Let me know if you need any further information from me.

Thanks,
Gabriel

Hi @gpetrini. Thank you for reaching out! It is not recommended to sync git repositories on Insync. Some users may not experience issues, while others may need a workaround to sync it to the cloud and across machines, like in your case.

Git, or any form of version control system, can be considered as another syncing application which means that there are two systems touching the files at the same time. This can cause issues like deletions, stuck syncing, duplication, errors, and the like.

To ignore the .git folder to not sync to the cloud, you can check our Ignore Rules guide.

I’ve just updated my license to the developer plan. On the page that you linked, there is the following:

What to expect when you enter a rule:
A previously synced file that matches a rule will be unsynced.

However, my git repos are not unsynced. How should I set the ignores rules for this cases?

This is what I have so far:

/home/gpetrini/Documents/KS-DA-Calibration/.git
/home/gpetrini/Documents/KS_vs_DSGE/.git
/home/gpetrini/PhD/.git
/home/gpetrini/Org/.git

Thanks,
Gabriel

Hi @gpetrini ,

Could you try this rule:
*.git

It’s going to ignore all .git files moving forward. Let me know how it goes!

Thank you for your response.

It worked for some folders. However, there are some folders that never complete the sync with the cloud. For those, the .git folder continues to be synced.

The screenshot below shows one of the folders that never stops updating. It is the same for more than one day. No new messages are on the “Feed,” and no file has been uploaded or scanned. Is this expected?

It’s possible that Insync is still loading the changes from when you implemented the Ignore Rule.

What is the status as of today? If it’s the same, can you click Pause app at the bottom of the Insync window, wait for 1 minute, then click Resume app?

Still the same :cry:

I’m also facing the same issue for folders with no file/subfolder that matches the ignore rules.

If it helps, here is the log file: [here] (removed by Admin for privacy purposes)

@gpetrini I see :frowning: Thank you for sharing your logs - I accessed them and then omitted it from your post to maintain your privacy.

When you can, could you send your logs.db and out.txt files from each computer to support@insynchq.com? Please also include the following:

  • A screenshot of your Ignore Rules
  • Link to this Forums post to trace your original report easily

Logs can be found by searching for ~/.config/Insync. Thank you!

Thank you

Just did it :slight_smile:

1 Like