mirror of
https://github.com/thomiceli/opengist.git
synced 2026-06-23 04:10:18 +00:00
28736d6b66
Signed-off-by: Thomas Miceli <tho.miceli@gmail.com>
997 B
997 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"
Set expiration
Only applies when creating a gist. The value is either a preset
(1hour, 12hours, 1day, 7days, 15days) or a custom date
(RFC3339, e.g. 2026-01-02T15:04:05Z).
git push -o expire=1day
git push -o expire=2026-01-02T15:04:05Z