summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--posts/making-cgit-go-gettable.md15
1 files changed, 9 insertions, 6 deletions
diff --git a/posts/making-cgit-go-gettable.md b/posts/making-cgit-go-gettable.md
index 0c197ca..9c32f2a 100644
--- a/posts/making-cgit-go-gettable.md
+++ b/posts/making-cgit-go-gettable.md
@@ -61,10 +61,11 @@ Remembering the semicolons here is important. You can always use `sudo
nginx -t` to test whether your current config is valid.
-## Configure Git to use SSH for the Git server
+## Configure Git to use SSH for your Git server
Add this block to your home directory's `.gitconfig` file, making the
-appropriate substitution for "example.com":
+appropriate substitution for "example.com" (in my case it would be
+`brandonirizarry.xyz`):
```ini
[url "git@example.com:"]
@@ -74,7 +75,7 @@ appropriate substitution for "example.com":
Alternatively, you can issue the equivalent command line invocation:
```
-git config --global url."git@example.com".insteadOf "https://git.example.com/"
+git config --global url."git@example.com:".insteadOf "https://git.example.com/"
```
Now, whenever you invoke `go get`, you'll be prompted for your SSH
@@ -85,11 +86,13 @@ Linux *user* on your remote server that owns the directory containing
all your Git repos. This syntax mirrors the one used when logging into
the same server via SSH, viz. `ssh git@example.com`.
-## Set GOPRIVATE (optional?)
+## Set GOPRIVATE
-I'm not sure I need to set this in my case, since AFAICT this has more
+~~I'm not sure I need to set this in my case, since AFAICT this has more
to do with close-sourcing code, which isn't my intention here. But I
-threw it in just in case.
+threw it in just in case.~~
+
+UPDATE 5/30/2026: Yes, you need this. :)
Since I want **all** my repos to be potentially installable as Go
packages for now, so I use a glob to indicate that: