Git: unable to access another user's branch?

This forum is for all Flare issues related to using Source Control.
Post Reply
richt
Propeller Head
Posts: 42
Joined: Wed Nov 28, 2018 6:38 am

Git: unable to access another user's branch?

Post by richt »

My company successfully moved from TFS to Git six months ago, which we use to maintain six different Flare projects. Now we're looking into using more Git features, so that multiple writers can maintain their own branches, and then merge these to the master branch at specific times. The Branch and Merge buttons in the Source Control tab seem to work fine here.

However, recently a writer created a new branch in a project, but the other writer can't see or access that branch (it's not selectable in the Branch drop-down menu). The branch was definitely committed and pushed to the repository, since all the commits are visible from the project's GitHub page, but no amount of Syncing or Pulling makes the branch visible from the other writer's Flare instance.

Any ideas on what's causing this? Both writers are using Flare 2019 r2, the project is in a GitHub Enterprise repo, and no other git tools are being used.
richt
Propeller Head
Posts: 42
Joined: Wed Nov 28, 2018 6:38 am

Re: Git: unable to access another user's branch?

Post by richt »

For anyone else searching for this and finding tumbleweeds...

Assuming you're in a Windows environment, you can:
  1. Download and install Git Bash.
  2. Navigate to your Flare project's root folder.
  3. Right-click, and select Git Bash here
  4. In the new window, type git fetch --all
  5. Open (or switch to) your Flare project
  6. In the Source Control tab, click Synchronise.
The remote branches should now be visible in the Branch drop-down menu. No idea why this functionality isn't available from within Flare though, when Fetch is such an intrinsic Git command.
Post Reply