Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find origin of a branch in git?

Tags:

git

branch

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?

like image 391
dlucci Avatar asked Sep 12 '14 18:09

dlucci


2 Answers

git remote show origin 

shows remote and local branches with tracking info.

like image 129
Preethi Avatar answered Sep 27 '22 23:09

Preethi


For people who just want to see all the remote urls

git remote -v

like image 25
Daltron Avatar answered Sep 27 '22 21:09

Daltron