check the git current head code example Example 1: git command show current repo git remote get-url origin Example 2: git check upstream url git remote show origin