In this video, you’ll learn how to easily change remote variables in Git, including how to update your repository origin URL using simple Git commands.
We’ll cover:
How to check your current Git remote (git remote -v)
How to change remote URL using git remote set-url
How to remove and add new remotes
Real-world example of switching repositories safely
Fixing common Git remote issues
💻 Commands used:
git remote -v
git remote set-url origin https://github.com/USERNAME/REPO.git
git remote add origin https://github.com/USERNAME/REPO.git
git remote remove origin
git push -u origin main
🚀 Perfect for:
Beginners in Git & GitHub
Developers switching repositories
DevOps / deployment workflows
Anyone learning version control basics
If you find this helpful, don’t forget to like 👍, share 🚀, and subscribe for more developer tutorials!