githits 0.6.4 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.plugin/plugin.json +1 -1
- package/README.md +19 -4
- package/dist/cli.js +15 -12
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-rbsx8ed5.js → chunk-ffqa4bpw.js} +3 -3
- package/dist/shared/{chunk-502sxvqf.js → chunk-pwfqg90m.js} +1 -1
- package/dist/shared/{chunk-psmh6f7t.js → chunk-qh0kv76d.js} +1 -1
- package/gemini-extension.json +1 -1
- package/package.json +9 -9
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/server.json +2 -2
package/.plugin/plugin.json
CHANGED
package/README.md
CHANGED
|
@@ -163,16 +163,31 @@ npx githits@latest login
|
|
|
163
163
|
Browser OAuth is recommended for local development. Credentials are stored in
|
|
164
164
|
the system keychain by default and refreshed automatically. Useful flags:
|
|
165
165
|
|
|
166
|
-
- `init --no-browser` or `login --no-browser` prints
|
|
166
|
+
- `init --no-browser` or `login --no-browser` prints the login URL instead of launching a browser
|
|
167
|
+
- `init --port <port>` or `login --port <port>` fixes the loopback callback port
|
|
167
168
|
- `login --force` re-authenticates even if you are already logged in
|
|
168
|
-
- `login --port <port>` uses a specific local callback port
|
|
169
169
|
|
|
170
|
-
|
|
170
|
+
The OAuth callback always listens on the machine where GitHits is running.
|
|
171
|
+
When GitHits runs over SSH and the browser runs locally, forward the selected
|
|
172
|
+
port from the browser machine:
|
|
171
173
|
|
|
172
174
|
```sh
|
|
173
|
-
|
|
175
|
+
ssh -N -L 8765:127.0.0.1:8765 user@remote-host
|
|
174
176
|
```
|
|
175
177
|
|
|
178
|
+
With that tunnel open, run GitHits on the remote machine using the same port:
|
|
179
|
+
|
|
180
|
+
```sh
|
|
181
|
+
npx githits@latest init --no-browser --port 8765
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Open the URL printed by GitHits in the local browser. Replace
|
|
185
|
+
`user@remote-host` with the SSH destination you normally use. The same flags
|
|
186
|
+
work with `githits login` after setup.
|
|
187
|
+
|
|
188
|
+
Browser OAuth is interactive. For CI and other unattended environments, supply
|
|
189
|
+
`GITHITS_API_TOKEN` through the environment's secret manager.
|
|
190
|
+
|
|
176
191
|
Inspect auth and runtime state with:
|
|
177
192
|
|
|
178
193
|
```sh
|