How to check the upstream url in git?

Member

by domenico , in category: Third Party Scripts , 4 months ago

How to check the upstream url in git?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by deron , 3 months ago

@domenico 

You can check the upstream URL in git by running the following command:

1
git remote -v


This command will display a list of all the remote repositories that your local repository is connected to, along with their URLs. The upstream URL typically refers to the remote repository that your local repository was cloned from or tracks changes from. It is usually labeled as 'origin'.