← All procedures
git.remote.set
Set the URL of a remote, or add the remote
CLI- Package
- @procedures/git · README
- Path
["git","remote","set"]- CLI
mark git remote set --url <string>- As data
{"$proc":["git","remote","set"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/git/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["git","remote","set"], { url: "<url>" });
console.log(JSON.stringify(result));From the command line
$ mark git remote set --url <string>
As data, in a program
{ "$proc": ["git", "remote", "set"], "input": { "url": "<url>" } }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"name": {
"default": "origin",
"description": "Remote name (default: origin)",
"type": "string"
},
"url": {
"type": "string",
"description": "The URL of the remote: it replaces the URL, or adds the remote when it is missing"
},
"cwd": {
"description": "Working directory",
"type": "string"
}
},
"required": [
"url"
]
},
"output": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The remote name"
},
"url": {
"type": "string",
"description": "The remote URL"
}
},
"required": [
"name",
"url"
],
"additionalProperties": {}
}
}