Files
opengist/docs/usage/git-push-options.md
Peter Barr 2946de2505 fix: apply topics push option in post-receive hook (#698)
* Apply `topics` push option in post-receive hook

The `topics` value was parsed into the push-options map but never read
by the hook, silently discarding any topics passed via `git push -o
topics=...`. Mirror the existing `title`/`description` handling and
reuse the `gisttopics` validator.

* Docs

Signed-off-by: Thomas Miceli <tho.miceli@gmail.com>

---------

Signed-off-by: Thomas Miceli <tho.miceli@gmail.com>
Co-authored-by: Thomas Miceli <tho.miceli@gmail.com>
2026-06-08 04:20:50 +08:00

729 B

Push Options

Opengist has support for a few Git push options.

These options are passed to git push command and can be used to change the metadata of a gist.

Set URL

git push -o url=mygist # Will set the URL to https://opengist.example.com/user/mygist

Change title

git push -o title=Gist123
git push -o title="My Gist 123"

Change description

git push -o description="This is my gist description"

Change visibility

git push -o visibility=public
git push -o visibility=unlisted
git push -o visibility=private

Change topics

git push -o topics="golang devops"