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 9149207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:26:44+00:00 2026-06-17T11:26:44+00:00

I have created a git repository on a linux server. For a longer part

  • 0

I have created a git repository on a linux server. For a longer part I was working alone and everything was working fine. When a friend joined in, he complained that he can only see master branch. I have checked this on my machine as well where I’m also running ubuntu instance within VMWare, and it is really so. To confuse me even more, I was able to push a new branch from ubuntu machine, that is visible only from inside ubuntu client, but not visible on the client on windows.

So the problem I’m facing is that from the two (in my case logically) separate machines, but against the same repository I’m seeing different branches

I originally pushed branches using Git bash on windows, and if I there I run git branch -r I get:

origin/HEAD -> origin/master
origin/develop
origin/develop2
origin/master

on ubuntu git branch -r I get

origin/HEAD -> origin/master
origin/develop3
origin/master

I can do git fetch as much as I like, simply things act like that they are working against a separate repo (aside for the shared master branch). It could be that I have miss-configured the git server in some way, or maybe an issue with keys, not sure, need suggestions, thanks

  • 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-17T11:26:45+00:00Added an answer on June 17, 2026 at 11:26 am

    Note that git branch -r will only list remote branches that are stored within your local repository. So it does not necessarily mean that those branches exist like that on the remote repository itself. By default, git fetch will however fetch all branches from the remote repository and add remote references into your local repository. So you will have all branches that exist on the remote locally as well.

    What git fetch does not do however is clean up remote branches that were created but removed from the remote repository later. To do that, use git fetch origin --prune. This will make Git update your remote branch list for the remote repository.

    So if the branches got removed later, you will notice it that way. If this will not get the remote branch list in sync, then it is likely, that your remote repositories are actually not the same. You can use git remote -v to get a listing of your remote configuration and double-check if it is the same on both machines.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created local linux kernel git repository from which I want to check
I have a remote server on which I have created a bare git repository.
In my repository, I have created tags using the following commands. git tag v1.0.0
I am a git beginner. I have created a git repository with 4 eclipse
I have a git checkout of an svn repository created via git svn clone.
I'm using git-svn to work with an SVN repository. My working copies have been
I have tried following how-set-up-your-own-private-git-server-linux and private-remote-git-repositories-ubuntu-linode but I am still having problems. My
I have created a remote bare repository: cd ~ mkdir -p git/foto-fiori.git cd git/foto-fiori.git
I have a git repository where I have created two different jobs in Jenkins
I have created a new git repository based on another. They will slowly be

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.