show different color for remote branch

hi

I am using git-p4 to sync perforce with my local git repositiory.

some how in source tree, p4/master and p4/HEAD are displayed in pink, which is the same color as local branches.

Is it possible to have them displayed in differenat colors?

Also is there a way to hide HEAD and remote HEAD? at least when HEAD is pointing to a named branch/tag?

thanks

mone

5 answers

It would help if you mentioned which product you were asking questions about.

Fisheye? Bitbucket?

It would help if you mentioned which product you were asking questions about.

Fisheye? Bitbucket?

sorry, it's for source tree.

I throught the tag "sourcetree" was for that purpose.

mone

Ahhh, I see that now... apparently it's too early in the morning for my brain to make the connection between Atlassian and their recently aquired Sourcetree app. Sorry :)

Also I think it's still useful to display HEAD even when you're on a branch - it's very quick to pick out in the log that way.

The branch that HEAD points to is already in bold color. I feel it's redundent information. If you look at the way gitX presents the history view, it's much cleaner.

In my situation, the p4/* remote branch is not in different color. Also they are not shown under remote group on the left panel. It maybe a bug. Again gitX does it fine and the history view is beautiful. I like everything about source tree but the history view just makes me want to go back to gitX.

If the p4/* isn't under the Remotes section, it's almost certainly not a remote branch, which is why it's in the local branch colour. If you think it is, please provide some kind of example repo I can look at.

But git branch -r shows that they are remote branches and GitX shows them fine.

!529 [12:44:05] $ git branch -r

p4/HEAD -> p4/master

p4/master

i created a sample .git that demostrate the problem. Can I send it to you through email?

Please can you log a bug at http://jira.atlassian.com - you can attach the repo to that. Thanks!

The branch & tag colours match the graph colour to help you associate them.

The icons on the labels show what type they are. Local branches have a blue branch icon, remote branch icons are grey (and they also have the remote prefix anyway).

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

273 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot