remote
furca remote [-C PATH] [--json]furca remote add NAME URLfurca remote rename FROM TOfurca remote set-url NAME URLfurca remote remove NAMEfurca remote prune NAMEEach is git remote with the same verb, run through your own git. Without a
verb it lists the remotes with their addresses; a password written into an
address is left out, the user name stays.
$ furca remotemirror https://git.example.com/acme/app.gitorigin git@github.com:acme/app.git
$ furca remote add backup /srv/git/app.gitAdded backup; `furca fetch backup` brings its branches.backup /srv/git/app.gitmirror https://git.example.com/acme/app.gitorigin git@github.com:acme/app.git| Verb | What it does |
|---|---|
add |
Adds a remote. Nothing is fetched from it yet. |
rename |
Renames it: its remote-tracking branches move with it, and the branches that follow it follow it under the new name. |
set-url |
Points it at another address, for fetching and - unless a pushurl sends them elsewhere - for pushing. |
remove |
Removes it and its remote-tracking branches; a branch that followed it follows nothing. Nothing on the remote is touched. |
prune |
Asks the remote which of its branches are gone, and takes away their remote-tracking branches here. |
After a change the list is printed again as it now is. A name git will not take, or a remote that is there already, is refused in git’s words.
--json prints the list after the change - for prune, what it took away:
$ furca remote --json[ { "name": "mirror", "url": "https://git.example.com/acme/app.git", "push_url": null }, { "name": "origin", "url": "git@github.com:acme/app.git", "push_url": null }]
$ furca remote prune origin --json{ "remotes": ["origin"], "moved": [{ "name": "refs/remotes/origin/gone", "from": "70262e5…", "to": null }] }push_url is the address pushes go to when a pushurl sends them elsewhere,
and null when they go where fetches come from.
Exit status
Section titled “Exit status”0 when git did it; 2 when it refused.