# Running the SilverBullet Git Plug-in with Version 2

**URL:** https://community.silverbullet.md/t/running-the-silverbullet-git-plug-in-with-version-2/2243
**Category:** Troubleshooting
**Created:** [April 24, 2025, 4:07am UTC](https://community.silverbullet.md/t/running-the-silverbullet-git-plug-in-with-version-2/2243 "2025-04-24T04:07:13Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![ChenZhu-Xie](https://community.silverbullet.md/user_avatar/community.silverbullet.md/chenzhu-xie/32/1476_2.png) [@ChenZhu-Xie](https://community.silverbullet.md/u/ChenZhu-Xie)
#### Post date: [September 10, 2025, 6:37am UTC](https://community.silverbullet.md/t/running-the-silverbullet-git-plug-in-with-version-2/2243/15 "2025-09-10T06:37:44Z")

</div>

Based on the @Zef version, the last space-lua script (in @Zef’s [Git.md](https://github.com/silverbulletmd/silverbullet-libraries/blob/main/Git.md)) has been modified to include an [event-driven git autosync](https://community.silverbullet.md/t/git-auto-sync-commit/1568/2) feature.

I tested it for a while, and it currently worked properly as expected: [event-driven Library/Git.md](https://gist.github.com/zefhemel/df94468428db3fe7049612cefbb8628a?permalink_comment_id=5753738#gistcomment-5753738)

Hope this can help buddy limit the incoming and outgoing traffic on the server side 🙂

PS: ❶ Event-triggered Sync is enabled by default, and does not need to be configured in CONFIG. ❷ However, the Periodic Sync is independently of this, and still needs to be configured in CONFIG. ❸ In addition, a (Periodic) Sync will be automatically triggered the moment the plug-in is updated (Ctrl + Shift + p) or the SB is initiating, if the Periodic Sync is properly configured in CONFIG.

```space-lua
config.set {
  git = {
    autoSync = 60 * 24, -- Periodic Sync is now only used to synchronize once at startup (with a large interval set). This seems more suitable for read-only mode (website viewers only pull once when loading, but it should be noted that each user will pull it once), while the writer only pushes through Trigger Sync.
  },
}

```

---

_[View the full topic](https://community.silverbullet.md/t/running-the-silverbullet-git-plug-in-with-version-2/2243)._
