# 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:** 2

<div class="post-metadata">

### Author: ![wbh](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/w/8797f3/32.png) [@wbh](https://community.silverbullet.md/u/wbh)
#### Post date: [April 24, 2025, 1:00pm UTC](https://community.silverbullet.md/t/running-the-silverbullet-git-plug-in-with-version-2/2243/2 "2025-04-24T13:00:57Z")

</div>

I believe this functionality has been removed in v2. In the [changelog](https://silverbullet.md/CHANGELOG):

> - You’ve entered the brave new world of SilverBullet 2.0. Welcome
> - The following features have been removed:
> - …
> - Cron hook (plug feature)

And the autocommit function in the [git plug](https://github.com/silverbulletmd/silverbullet-git/blob/main/git.plug.yaml) relies on a cron hook:

```auto
name: git
requiredPermissions:
  - shell
functions:
  autoCommit:
    path: git.ts:autoCommit
    env: server
    cron: "* * * * *" <----

```

I haven’t seen any information about reimplementing the cron hook. There is an [event](https://silverbullet.md/API/event) dispatched called `cron:secondPassed` that could probably be used to implement a similar feature locally. I also so a discussion somewhere that included code to sync when leaving a page. I’ll try to find that and see if it works in v2.

Edit: [This](https://community.silverbullet.md/t/git-auto-sync-commit/1568/2) was the post I had seen. I haven’t tested it.

---

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