Push dialog suggests invalid remote branch cache

I'm using sourcetree1.8.1 on mac osx10.9.1.

Once I push commits to "forces" branch, and I remove remote branch "forces".

But sourcetree suggests "forces" branch repeatedly.

Is it cache? How can I remove that?

When I commit code with a option "Push commits immediately to: origin", commits are always going to "forces".

1

But it has only mater branch.

How can I remove "forces" auto selection?

4 answers

This widget could not be displayed.

If you right click a local branch in the main window, you can switch which remote branch is being tracked by that local branch.

I tried it, but it doesn't work.

It still change remote branch to "forces" automatically.

When the push dialog pops up, I see a rolling circle that might search matching branch name for a second, and it changes branch name to "forces".

When using console, "git push" make codes goes to "origin/master", and I think sourcetree doing something inside with cache like things.

This widget could not be displayed.

Finally, I renamed local branch name "master" to "master2", and changed git>Push branch to "upstream".

Now when pushing master2 sourcetree set default push branch "master" correctly.

But when I renamed local branch name to "master" again, it suggest "forces".

I think sourcetree has invalid cache information inside somewhere.

This widget could not be displayed.

In the root of your repository is a hidden .git folder. Inside is a text file named "config" that should list all of your local branches and the remote ("remote") and branch ("merge") it is associated with. If your "forces" branch is not listed there, then SourceTree is probably caching something like you suspect.

This widget could not be displayed.

It seems to be old problem, but have the same issue here, with 2.5.1 version. I grepped my .git directory for "forces" string, with no luck. Any other idea?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 3 hours ago in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

14 views 0 1
Join discussion

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