'git remote and origin <url> not working. when i run this, i'm getting an error as unknown subcommand
note: there is no error in url
git remote and origin https://github.com/Goutham10/MatchGame.git
error: Unknown subcommand: and
usage: git remote [-v | --verbose] or: git remote add [-t ] [-m ] [-f] [--tags | --no-tags] [--mirror=<fetch|push>]
or: git remote rename
or: git remote remove
or: git remote set-head (-a | --auto | -d | --delete | )
or: git remote [-v | --verbose] show [-n]
or: git remote prune [-n | --dry-run]
or: git remote [-v | --verbose] update [-p | --prune] [( | )...]
or: git remote set-branches [--add] ...
or: git remote get-url [--push] [--all]
or: git remote set-url [--push] []
or: git remote set-url --add
or: git remote set-url --delete
-v, --verbose be verbose; must be placed before a subcommand
Solution 1:[1]
You have a typo in your subcommand
git remote add origin <url>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | deric4 |
