mirror of
https://github.com/danog/gift.git
synced 2024-11-26 20:04:47 +01:00
parent
43e5d51755
commit
4c600dfa4b
11
README.md
11
README.md
@ -115,19 +115,22 @@ Get the string names of each of the remotes.
|
||||
### `Repo#remote_add(name, url, callback)`
|
||||
Equivalent to `git remote add <name> <url>`.
|
||||
|
||||
### `Repo#remote_remove(name, callback)`
|
||||
Remove a remote.
|
||||
|
||||
### `Repo#remote_add_url(name, url, callback)`
|
||||
Equivalent to `git remote set-url --add <name> <url>`.
|
||||
|
||||
### `Repo#remote_set_url(name, url, callback)`
|
||||
Equivalent to `git remote set-url <name> <url>`.
|
||||
|
||||
### `Repo#remote_delete_url(name, url, callback)`
|
||||
Equivalent to `git remote set-url --delete <name> <url>`.
|
||||
|
||||
### `Repo#remote_remove(name, callback)`
|
||||
Remove a remote.
|
||||
|
||||
### `Repo#remote_fetch(name, callback)`
|
||||
`git fetch <name>`
|
||||
|
||||
### `Repo#remote_push(name, [branch, ]callback)`
|
||||
### `Repo#remote_push(name, [branch,] callback)`
|
||||
`git push <name>`
|
||||
|
||||
with branch parameter specified:
|
||||
|
@ -187,6 +187,16 @@ module.exports = class Repo
|
||||
, (err, stdout, stderr) ->
|
||||
callback err
|
||||
|
||||
# Public: Remove a remote.
|
||||
#
|
||||
# name - String name of the remote.
|
||||
# callback - Receives `(err)`
|
||||
#
|
||||
remote_remove: (name, callback) ->
|
||||
@git "remote", {}, ["rm", name]
|
||||
, (err, stdout, stderr) ->
|
||||
callback err
|
||||
|
||||
# Public: Add a remote URL.
|
||||
#
|
||||
# name - String name of the remote.
|
||||
@ -198,6 +208,17 @@ module.exports = class Repo
|
||||
, (err, stdout, stderr) ->
|
||||
callback err
|
||||
|
||||
# Public: Set a remote URL.
|
||||
#
|
||||
# name - String name of the remote.
|
||||
# url - String url to set in the remote.
|
||||
# callback - Receives `(err)`.
|
||||
#
|
||||
remote_set_url: (name, url, callback) ->
|
||||
@git "remote set-url", {}, [name, url]
|
||||
, (err, stdout, stderr) ->
|
||||
callback err
|
||||
|
||||
# Public: Delete a remote URL.
|
||||
#
|
||||
# name - String name of the remote.
|
||||
@ -209,16 +230,6 @@ module.exports = class Repo
|
||||
, (err, stdout, stderr) ->
|
||||
callback err
|
||||
|
||||
# Public: Remove a remote.
|
||||
#
|
||||
# name - String name of the remote.
|
||||
# callback - Receives `(err)`
|
||||
#
|
||||
remote_remove: (name, callback) ->
|
||||
@git "remote", {}, ["rm", name]
|
||||
, (err, stdout, stderr) ->
|
||||
callback err
|
||||
|
||||
# Public: `git fetch <name>`.
|
||||
#
|
||||
# name - String name of the remote
|
||||
|
Loading…
Reference in New Issue
Block a user