Check the Github adding a remote article official doc which have better code highlighting and infos
but if you are an experienced user, just check out below commands and note that only the first command is required and second one is just for verifying and will return related repo details.
git remote add origin https://github.com/user/repo.git
git remote -v
Git Remote add Command dissection
- params:
- remote name: origin (a default name for a remote Repo in Git )
- remote url: https://github.com/user/repo.git (in this example)