git remote
git remote command is used to manage remote connections in a Git project.
git remote do ?
git remote ? git remote
git remote -v
git remote add origin https://github.com/SmartProgrammingCoders/GitDemo.git
origin : It is the nickname for your GitHub repo (can be anything).
https://github.com/SmartProgrammingCoders/GitDemo.git : It is the repository URL i.e. actual location of your GitHub repository which we have created in previous tutorial.
git remote commands: git remote
origin, upstream).
git remote -v
git remote show origin
git remote add <name> <remote-url>
git remote add origin https://github.com/SmartProgrammingCoders/GitDemo.git
origin to your GitHub repo.
git remote rename <old-name> <new-name>
git remote rename origin gitdemorepo
origin to gitdemorepo.
git remote remove <name>
git remote remove origin
origin.
git remote set-url <name> <new-url>
git remote set-url origin https://github.com/SmartProgrammingCoders/NewRepo.git
origin.
Your feedback helps us grow! If there's anything we can fix or improve, please let us know.
Weβre here to make our tutorials better based on your thoughts and suggestions.