Difference between revisions of "Git remote add"
Jump to navigation
Jump to search
(4 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
* <code>[[git remote]] add</code> | * <code>[[git remote]] add</code> | ||
+ | * <code>[[git remote add origin]]</code> | ||
[[git remote add]] [[origin]] [email protected]:/username/project.git | [[git remote add]] [[origin]] [email protected]:/username/project.git | ||
Line 8: | Line 9: | ||
Review: [[.git/config]] | Review: [[.git/config]] | ||
− | [[git remote add origin]] | + | [[git remote add origin]] https://github.com/your_user/your_repo.git |
+ | |||
+ | == Errors == | ||
+ | [[git remote add origin]] https://github.com/your_user/your_repo.git | ||
[[error: remote origin already exists.]] | [[error: remote origin already exists.]] | ||
Solution: [[git remote rm origin]] | Solution: [[git remote rm origin]] | ||
+ | [[git config --list]] | ||
== Related terms == | == Related terms == | ||
Line 18: | Line 23: | ||
* <code>[[git config --list]]</code> | * <code>[[git config --list]]</code> | ||
* <code>[[git push]]</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 == | ||
− | * {{git}} | + | * {{git remote add}} |
+ | * {{git remote}} | ||
[[Category:Git]] | [[Category:Git]] |
Latest revision as of 16:21, 30 January 2025
git remote add origin [email protected]:/username/project.git (no output) Review: .git/config
git remote add origin https://github.com/your_user/your_repo.git
Errors[edit]
git remote add origin https://github.com/your_user/your_repo.git error: remote origin already exists. Solution: git remote rm origin git config --list
Related terms[edit]
See also[edit]
Advertising: