Difference between revisions of "Git remote"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
https://git-scm.com/docs/git-remote
 
https://git-scm.com/docs/git-remote
  
<code>[[git remote add]] [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=(fetch|push)] <name> <url></code>
+
* <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>
  
<code>[[git remote add]] origin git@gitserver:/srv/git/project.git</code>
+
[[git remote rm origin]]
 
 
<code>[[git remote -v]]</code>
 
  
 
== Examples ==
 
== Examples ==
Line 18: Line 19:
 
  origin  [email protected]:your-project/your-repo.git ([[fetch]])
 
  origin  [email protected]:your-project/your-repo.git ([[fetch]])
 
  origin  [email protected]:your-project/your-repo.git ([[push]])
 
  origin  [email protected]:your-project/your-repo.git ([[push]])
 +
 +
[[git remote show origin]]
  
 
== Related commands ==
 
== Related commands ==

Latest revision as of 06:14, 1 September 2022

Advertising: