gitbranch

How to find origin of a branch in git?


Say if my project contains two masters (master and master_ios) and I want to see what the origin of a feature branch is (by origin, i mean the branch the feature branch is based off), how would I accomplish this in git?


Solution

  • git remote show origin
    

    shows remote and local branches with tracking info.