Skip to content

alvar0liveira/silverbullet-git

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilverBullet plug for Git

Simple git plugin for SilverBullet.

{[Git: Sync]}:

  • Adds all files in your folder to git
  • It commits them with a "Snapshot" commit message
  • It git pulls changes from the remote server
  • It git pushes changes to the remote server

{[Git: Snapshot]}:

  • Asks you for a commit message
  • Commits

{[Github: Clone]}:

Clones into your space from a Github repository. This will do authentication based on a personal access token.

Configuration

This plug now supports auto commit and auto sync. You can configure this in your [[SETTINGS]] page as follows:

git:
  autoCommitMinutes: 5
  autoSync: true # or false

This will automatically commit (and if autoSync is set to true perform a sync, meaning do the whole "push" and "pull" dance) every 5 minutes. If no changes were made, the git commands won't do anything.

Installation

Open your PLUGS note in SilverBullet and add this plug to the list:

- github:silverbulletmd/silverbullet-git/git.plug.js

Then run the Plugs: Update command and off you go!

To Build

deno task build

About

Basic Git plug for Silver Bullet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%