how to get the branch url in git from master command line code example Example: get git remote url git config --get remote.origin.url