[git.push]
git.push is a slot in the git namespace, in Hyperlambda, the language of Magic Cloud. Pushes changes to a Git remote.
- Value (
git-repo-path), required: Repository path - Returns: Resolves to the git push command output
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[remote] |
string | no | Remote to push to. Default: origin. |
[branch] |
string | no | Branch to push. |
[set-upstream] |
bool | no | Set upstream while pushing. Default: false. |
Guide: How to use [git.push]
JSON declaration
This is the complete declaration of git.push, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "git.push",
"description": "Pushes changes to a Git remote",
"signature": {
"input": {
"kind": "git-repo-path",
"description": "Repository path",
"required": true,
"mode": "ValueOrExpression"
},
"children": {
"remote": {
"type": "string",
"kind": "git-remote",
"description": "Remote to push to",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"default": "origin",
"role": "Option",
"projection": "Value"
},
"branch": {
"type": "string",
"kind": "git-branch",
"description": "Branch to push",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"role": "Option",
"projection": "Value"
},
"set-upstream": {
"type": "bool",
"description": "Set upstream while pushing",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"default": "false",
"role": "Option",
"projection": "Value"
}
},
"output": {
"mode": "Value",
"kind": "git-response,text",
"description": "Resolves to the git push command output"
}
}
}
← git.pull |
all git.* slots |
git.remote.add → |