Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8581171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:59:03+00:00 2026-06-11T20:59:03+00:00

This is not Find out which remote branch a local branch is tracking ,

  • 0

This is not Find out which remote branch a local branch is tracking, If I have mulitple remotes, I might have “master” in all of them. git branch returns master but I don’t know if the master branch I’m on is in remoteFoo or remoteBar. For example, I might do:

git clone someRepo.git
cd someRepo
git remote add anotherRemote otherremoteURL

Then git remote shows

someRepo
anotherRemote

I can do git checkout -b master someRepo/master or git checkout -b master anotherRemote/master and git branch will say “master” in both cases. How do I get back the first part, “someRepo” or “anotherRemote”?

You’d think I could use git remote show but it requires an argument, the name of the remote you want information on.

$ git remote show origin
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
$ git remote show
someRepo
anotherRemote

With git branch I get an indication of what is current:

$ git branch
  hold
* master
  old-stuff
  refactor

but there’s no “*” in git remote output.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:59:04+00:00Added an answer on June 11, 2026 at 8:59 pm

    You may want to try these below to view in detail the information.

    git remote -v
    git remote -v show origin
    

    Example output below:

    dmasi@:/var/www/pirate_booty$ git remote -v
    origin  git@bitbucket.org:dmasi/pirate_booty_calculator.git (fetch)
    origin  git@bitbucket.org:dmasi/pirate_booty_calculator.git (push)
    
    dmasi@:/var/www/pirate_booty$ git remote -v show origin
    * remote origin
      Fetch URL: git@bitbucket.org:dmasi/pirate_booty_calculator.git
      Push  URL: git@bitbucket.org:dmasi/pirate_booty_calculator.git
      HEAD branch: master
      Remote branch:
        master tracked
      Local branch configured for 'git pull':
        master merges with remote master
      Local ref configured for 'git push':
        master pushes to master (up to date)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to find out weather I can do this or not. I have
I'm not sure if this is possible at all, but wanted to find out
I am tired to find out why this simple query not working. SELECT image_url
I have been looking for an answer to this and could not find it
I did not find an answer to this question. I have a VOIP application.
I have searched but could not find the reason for this behavior. I have
I could not find a clear answer to this question elsewhere, so I'll try
Why is this not working $(this).parents(tr).find(td:eq(2)).html() I cant seam to get the text getthis
I'm not able to get this persistence file correct... I do not find any
Sorry if this has already been answered but I could not find it here.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.