You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,15 @@
1
+
# v2.3.0
2
+
## 04/27/2021
3
+
4
+
1.[](#new)
5
+
* Added new Advanced Git Ignore field where it is possible to specify custom git ignore entries to play along with GitSync [#197](https://github.com/trilbymedia/grav-plugin-git-sync/issues/197)[#117](https://github.com/trilbymedia/grav-plugin-git-sync/issues/117)
6
+
* Support `ssh://` protocol and SSH Key authentication ([read more](https://github.com/trilbymedia/grav-plugin-git-sync#ssh--enterprise)) [#110](https://github.com/trilbymedia/grav-plugin-git-sync/issues/110)
7
+
1.[](#improved)
8
+
* Updated PHP Encryption dependency
9
+
1.[](#bugfix)
10
+
* Fixed issue with Flex Objects, preventing GitSync's settings to get refreshed `onAdminSave` when "Sync on Page Save" disabled
11
+
* Return raw URL for repositories setup with `ssh://` protocol, instead of injecting the password like `git://` and `http://` protocols do [#104](https://github.com/trilbymedia/grav-plugin-git-sync/issues/104)
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,6 @@ Git Sync captures any change that you make on your site and instantly updates yo
6
6
7
7
Thanks to this powerful bi-directional flow, Git Sync can now turn your site into a collaborative environment where the source of truth is always your git repository and unlimited collaborators and sites can share and contribute to the same content.
8
8
9
-
> :warning: With GitHub’s recent change of repository default branches being named ‘main’ instead of ‘master’ the following work-around is needed until GitHub also addresses automatic default branch re-routing:
10
-
> 1. Once you have created your new repo, create a new branch called ‘master’
11
-
> 2. Set the default branch of the repo to this newly created ‘master’ branch
12
9
13
10
## Videos: Setup and Demo
14
11
@@ -33,6 +30,7 @@ After having installed the plugin, make sure to go in the plugin settings in ord
33
30
* Easy step-by-step Wizard setup will guide you through a detailed process for setting things up
34
31
* Supported hosting services: [GitHub](https://github.com), [BitBucket](https://bitbucket.org), [GitLab](https://gitlab.com) as well as any self-hosted and git service with webhooks support.
35
32
* Private repositories
33
+
* Basic SSH / Enterprise support (You will need SSH Key properly setup on your machine)
36
34
* Synchronize any folder under `user` (pages, themes, config)
37
35
* 2FA (Two-Factor Authentication) and Access Token support
38
36
* Webhooks support allow for automatic synchronization from the Git Repository with secure Webhook URL auto-generated and support for Webhook Secret (when available)
@@ -70,6 +68,18 @@ In order for the plugin to work, the server needs to run `git` 1.7.1 and above.
70
68
71
69
The PHP `exec()` and `escapeshellarg()` functions are mandatory. Ensure the options to be enabled in your PHP.
72
70
71
+
# SSH / Enterprise
72
+
73
+
Since version v2.3.0, GitSync supports SSH authentication. This means you can omit password altogether and rely on the Repository URL and SSH key on your machine, that you can point to from the Advanced settings in GitSync.
74
+
75
+
Please note that In order to be able to sparse-checkout and push changes, it is expected you have an ssh-key configured for accessing the repository. This is usually found under `~/.ssh` and it needs to be configured for the same user that runs the web-server.
76
+
77
+
Point it to the secret (not the public) and make also sure you have strict permissions to the file. (`-rw-------`).
> **IMPORTANT**: SSH keys with passphrase are **NOT** supported. To remove a passphrase, run the `ssh-keygen -p` command and when asked for the new passphrase leave blank and return.
82
+
73
83
# Known Issues and Resolutions
74
84
**Q:**`error: The requested URL returned error: 403 Forbidden while accessing...`[#39](https://github.com/trilbymedia/grav-plugin-git-sync/issues/39)
75
85
**A:** This might be caused by your computer having stored in the registry a user/password that might conflict with the one you are intending to use.
Copy file name to clipboardExpand all lines: blueprints.yaml
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
name: Git Sync
2
2
type: plugin
3
3
slug: git-sync
4
-
version: 2.2.0
4
+
version: 2.3.0
5
5
description: Allows to synchronize portions of Grav with Git Repositories (GitHub, BitBucket, GitLab)
6
6
icon: git
7
7
author:
@@ -243,6 +243,29 @@ form:
243
243
help: If the default `git` command doesn't work on your machine or if you want to specify a custom path, do it in here
244
244
placeholder: /usr/bin/git
245
245
246
+
git.ignore:
247
+
type: textarea
248
+
label: Git Ignore
249
+
help: Add custom git ignore rules to go along with GitSync. One per line
250
+
rows: 6
251
+
placeholder: |
252
+
node_modules
253
+
/.idea
254
+
255
+
git.private_key:
256
+
type: text
257
+
label: Private SSH Key
258
+
placeholder: ~/.ssh/id_rsa
259
+
markdown: true
260
+
description: >
261
+
In order to be able to sparse-checkout and push changes, it is expected you have an ssh-key configured for accessing the repository. This is usually found under `~/.ssh` and it needs to be configured for the same user that runs the web-server. <br />
262
+
<br />
263
+
Point it to the secret (not the public) and make also sure you have strict permissions to the file. (`-rw-------`). <br />
**IMPORTANT**: SSH keys with passphrase are __NOT__ supported. To remove a passphrase, run the `ssh-keygen -p` command and when asked for the new passphrase leave blank and return.
0 commit comments