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: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,23 @@ The same right click menus as in Studio live under "Server Source Control..." wh
42
42
### Security
43
43
If you want to interact with remotes from VSCode/Studio directly (e.g., to push/pull), you must use ssh (rather than https), create a public/private key pair to identify the instance (not yourself), configure the private key file for use in Settings, and configure the public key as a deploy key in the remote(s).
44
44
45
+
### Setting up multiple GitHub deploy keys on one machine
46
+
47
+
Assuming you have the local and remote repositories created,
48
+
49
+
1. Create your key pair using `ssh-keygen`.
50
+
2. Add the public key to GitHub.
51
+
3. You can try setting remotes with the URL your remote repository provides, but sometimes your firewall might cause issues and refuse the SSH connection. In that case, I've found that changing the remote URL to the following is helpful:
1. `<path to IRIS Instance storage>\mgr\<private key>`
55
+
2. `~/.ssh/<private key>`
56
+
5. Make sure to set the owner and permissions for the private key correctly. For Windows, go to where the private key is stored in IRIS and edit the owner to be the admin, disable inheritance and remove all access to the key to every user except the admin.
57
+
6. In git source control settings, set the path to the private key as the one in IRIS.
58
+
7. Change the default `ssh` command in the git config for **your repository** as:
8. Test the refresh button for the remote branches on the WebUI, fetch from the source control menu in Studio or VS Code, and `git fetch` in Git Bash. All 3 should work without any issues.
61
+
45
62
## During Development
46
63
47
64
:warning: Whenever any code in this project is updated outside the server (e.g. after every `git pull`), you _have_ to run `zpm "load <absolute path to git-source-control>"`. Otherwise, the changes won't be reflected on the server. However, if you load git-source-control via the InterSystems package manager and run `git pull` via the extension itself with the default pull event handler configured, it'll just work.
0 commit comments