In this plain and simple tutorial we are going to see how to get the remote URL that a Git repository was initially cloned from. This could be useful though when writing scripts per se.
Step 1. Open terminal and run the following command:
git config --get remote.origin.url
If you need more details, run:
git remote show origin