Note:- You can create a local git repo with "git init" command. Then you wont have the remote repository set. In that case you can add a remote repository with the following command.
git remote add origin [email protected]:User/UserRepo.git
If you want to change the url of an existing remote repository:
git remote set-url origin [email protected]:User/UserRepo.git
To find remote repo
git remote -v