Difference between revisions of "Git remote add"

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
* <code>[[git remote]] add</code>
 
* <code>[[git remote]] add</code>
  
  [[git remote add]] [[origin]] git@gitserver:/srv/git/project.git
+
  [[git remote add]] [[origin]] git@gitserver.com:/username/project.git
 
  (no output)
 
  (no output)
 +
Review: [[.git/config]]
 +
 +
[[git remote add origin]] your_URL
 +
[[error: remote origin already exists.]]
 +
 +
Solution: [[git remote rm origin]]
 +
[[git config --list]]
  
 
== Related terms ==
 
== Related terms ==
Line 11: Line 18:
 
* <code>[[git remote -v]]</code>
 
* <code>[[git remote -v]]</code>
 
* <code>[[git config --list]]</code>
 
* <code>[[git config --list]]</code>
* <code>[[git push --set-upstream origin master]]</code>
+
* <code>[[git push]]</code>, <code>[[git push --set-upstream origin master]]</code>
 +
* <code>[[git clone]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 16:34, 8 May 2023

Advertising: