× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2011-07-18T18:28:43Z  · last modified 2011-08-08T18:33:36Z

git - Remote add for tracked repositories like github etc


Priority Major
Complexity Unknown
Component App - Version Control - GIT
Version 10.0

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.

1 attachment
  • r1.png

    2011-07-18T18:28:55Z

    10 KB

Issue #5945

Closed
Fixed
Resolved 2011-08-08T16:30:30Z
 
 
Completion
No due date
Fixed Build 10.0.0-rc-11
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017