git check current repo remote branch code example Example 1: see git origin git remote -v Example 2: get git remote url git config --get remote.origin.url