grgit-remote
Synopsis
grgit.remote.list()
grgit.remote.add(name: <name>, url: <url>, pushUrl: <url>,
fetchRefSpecs: [<refspec>, ...], pushRefSpecs: [<refspecs>, ...],
mirror: <boolean>)
grgit.remote.add {
name = <name>
url = <url>
pushUrl = <url>
fetchRefSpecs = [<refspec>, ...]
pushRefSpecs = [<refspecs>, ...]
mirror = <boolean>
}
Options
add
- name
-
(
String, defaultnull) Name of the new remote - url
-
(
String, defaultnull) URL to fetch the remote repository from. - pushUrl
-
(
String, defaultnull) URL to push to for this remote. If omitted,urlis used for push. - fetchRefSpecs
-
(
List<String>, default[+refs/heads/:refs/remotes/<name>/]) default refspecs to use when fetching from this remote. - pushRefSpecs
-
(
List<String>, default[]) default refspecs to use when pushing to this remote. - mirror
-
(
boolean, defaultfalse) Iftruemakes grgit-push always behave as ifmirroris specified.