Difference between revisions of "Git remote"

From wikieduonline
Jump to navigation Jump to search
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
git remote add [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=(fetch|push)] <name> <url>
+
https://git-scm.com/docs/git-remote
  
[[git remote add]] origin git@gitserver:/srv/git/project.git
+
* <code>[[git remote add]] [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=(fetch|push)] <name> <url></code>
 +
* <code>[[git remote add origin]] git@gitserver:/srv/git/project.git</code>
 +
* <code>[[git remote show origin]]</code>
 +
* <code>[[git remote -v]]</code>
 +
 
 +
[[git remote rm origin]]
  
* <code>[[git remote -v]]</code>
+
== Examples ==
 +
git remote
 +
(no output)
  
 
  git remote
 
  git remote
 
  [[origin]]
 
  [[origin]]
 +
 +
[[git remote -v]]
 +
origin  [email protected]:your-project/your-repo.git ([[fetch]])
 +
origin  [email protected]:your-project/your-repo.git ([[push]])
 +
 +
[[git remote show origin]]
 +
 +
== Related commands ==
 +
* <code>[[git remote add]]</code>
 +
* <code>[[git push]]</code>
 +
* <code>[[conan remote]]</code>
 +
* <code>[[git status]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{git remote}}
 
* {{git}}
 
* {{git}}
  
 
[[Category:Git]]
 
[[Category:Git]]

Latest revision as of 06:14, 1 September 2022

Advertising: