check git connection to remote urls code example Example: get git remote url git config --get remote.origin.url