Difference between revisions of "Git remote add"
Jump to navigation
Jump to search
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{lowercase}} | {{lowercase}} | ||
+ | * https://git-scm.com/docs/git-remote | ||
* <code>[[git remote]] add</code> | * <code>[[git remote]] add</code> | ||
+ | * <code>[[git remote add origin]]</code> | ||
− | + | [[git remote add]] [[origin]] git@gitserver.com:/username/project.git | |
+ | (no output) | ||
+ | Review: [[.git/config]] | ||
+ | |||
+ | [[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.]] | ||
+ | |||
+ | Solution: [[git remote rm origin]] | ||
+ | [[git config --list]] | ||
== Related terms == | == Related terms == | ||
* <code>[[git init]]</code> | * <code>[[git init]]</code> | ||
+ | * <code>[[git remote -v]]</code> | ||
+ | * <code>[[git config --list]]</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: