git - Remote add
A new feature to manage a set of tracked repositories. This is very useful to manage source code in website like github, gitoriuos etc. I created a github account and try to set up my initialized git directory to link to github account using Remote add
For e.g. to add my initialized directory "aqua-data-studio-10" in my local machine to my github account, I use
git remote add origin git@github.com:tariqrahiman/aqua-data-studio-10.git
The remote details are name and location. See screenshot of Tortoise and GIT GUI
OPTIONS
-----------
git remote add [-t <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror=<fetch|push>] <name> <url>
Adds a remote named <name> for the repository at <url>. The command git fetch <name> can then be used to create and update remote-tracking branches <name>/<branch>.
With -f option, git fetch <name> is run immediately after the remote information is set up.
With --tags option, git fetch <name> imports every tag from the remote repository.
With --no-tags option, git fetch <name> does not import tags from the remote repository.
With -t <branch> option, instead of the default glob refspec for the remote to track all branches under the refs/remotes/<name>/ namespace, a refspec to track only <branch> is created. You can give more than one -t <branch> to track multiple branches without grabbing all branches.
With -m <master> option, a symbolic-ref refs/remotes/<name>/HEAD is set up to point at remote’s <master> branch. See also the set-head command.
When a fetch mirror is created with --mirror=fetch, the refs will not be stored in the refs/remotes/ namespace, but rather everything in refs/ on the remote will be directly mirrored into refs/ in the local repository. This option only makes sense in bare repositories, because a fetch would overwrite any local commits.
When a push mirror is created with --mirror=push, then git push will always behave as if --mirror was passed.
|
10 KB
There is no corresponding command or API in JGIT.
Postponed until better times.
Issue #5945 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build 10.0.0-rc-11 |
No time estimate |
There is no corresponding command or API in JGIT.
Postponed until better times.