Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for push options #2302

Closed
naxxfish opened this issue Aug 19, 2024 · 1 comment
Closed

Add support for push options #2302

naxxfish opened this issue Aug 19, 2024 · 1 comment

Comments

@naxxfish
Copy link

Git supports Push options which allow options to be sent along with the push.

These are received by a server side pre-receive and post-receive hooks -and some Git hosts provide useful functionality out of the box using these options, like skipping CI or setting variables for CI pipelines in Gitlab. They can also be useful when you have server side hooks which support options.

These are specified as a string, where the interpretation of that string is up to the receiver to decide how to interpret it. Often it's just a flag (e.g. ci.skip) or can be something with it's own parameter (e.g. variable=value).

On the command line, a user could use these options as such:

git push -o mypushoption

Most users who would use these options will have a set of options they are likely to use frequently - so for the UI it could be a free text entry box which has a dropdown of previous strings which were used successfully before.

@DanPristupov
Copy link
Contributor

You can create such push using a branch custom command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants