How to find origin of a branch in git?

For people who just want to see all the remote urls

git remote -v


git remote show origin

shows remote and local branches with tracking info.


Git does not track what branch a commit was created on and does not track where a branch was branched off from. There is no information in git that you can use answer that question.

source: https://community.atlassian.com/t5/Bitbucket-questions/Knowing-from-which-branch-the-current-branch-was-created-from/qaq-p/570135

Tags:

Branch

Git