2022-10-29 07:48:10 +00:00
|
|
|
---
|
2022-07-24 19:39:37 +00:00
|
|
|
type: plug
|
2023-05-23 18:53:53 +00:00
|
|
|
uri: github:silverbulletmd/silverbullet-git/git.plug.js
|
2023-02-14 15:02:36 +00:00
|
|
|
repo: https://github.com/silverbulletmd/silverbullet-git
|
2022-07-24 19:39:37 +00:00
|
|
|
author: Zef Hemel
|
2022-10-29 07:48:10 +00:00
|
|
|
---
|
2022-10-12 09:47:13 +00:00
|
|
|
|
2022-10-29 07:48:10 +00:00
|
|
|
<!-- #include [[https://raw.githubusercontent.com/silverbulletmd/silverbullet-git/main/README.md]] -->
|
2022-07-25 14:51:46 +00:00
|
|
|
# SilverBullet plug for Git
|
2023-08-04 16:56:55 +00:00
|
|
|
|
2022-10-29 07:48:10 +00:00
|
|
|
Very basic in functionality, it assumes you have git configured for push and pull in your space. What it does, roughly speaking:
|
2022-07-24 19:39:37 +00:00
|
|
|
|
2023-08-04 16:56:55 +00:00
|
|
|
{[Git: Sync]}:
|
|
|
|
|
|
|
|
- Adds all files in your folder to git
|
|
|
|
- It commits them with a "Snapshot" commit message
|
|
|
|
- It `git pull`s changes from the remote server
|
|
|
|
- It `git push`es changes to the remote server
|
|
|
|
|
|
|
|
{[Git: Snapshot]}:
|
|
|
|
|
|
|
|
- Asks you for a commit message
|
|
|
|
- Commits
|
2022-07-24 19:39:37 +00:00
|
|
|
|
2023-08-04 16:56:55 +00:00
|
|
|
{[Github: Clone]}:
|
|
|
|
|
|
|
|
Clones into your space from a Github repository. This will do authentication based on a [personal access token](https://github.com/settings/tokens).
|
2022-07-25 14:51:46 +00:00
|
|
|
|
|
|
|
## Installation
|
2023-08-04 16:56:55 +00:00
|
|
|
|
2022-07-25 14:51:46 +00:00
|
|
|
Open your `PLUGS` note in SilverBullet and add this plug to the list:
|
|
|
|
|
|
|
|
```
|
2023-08-04 16:56:55 +00:00
|
|
|
- github:silverbulletmd/silverbullet-git/git.plug.js
|
2022-07-25 14:51:46 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Then run the `Plugs: Update` command and off you go!
|
2022-07-24 19:39:37 +00:00
|
|
|
|
2022-10-29 07:48:10 +00:00
|
|
|
## To Build
|
2023-08-04 16:56:55 +00:00
|
|
|
|
2022-10-29 07:48:10 +00:00
|
|
|
```shell
|
|
|
|
deno task build
|
|
|
|
```
|
2022-10-12 09:47:13 +00:00
|
|
|
<!-- /include -->
|