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

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.

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.

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.

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 yesterday in United States

From Atlassian: Confluence Security Advisory - 2019-03-20

Atlassian released a security advisory on 3/20/2019.  The full advisory is here:  https://confluence.atlassian.com/doc/confluence-security-advisory-2019-03-20-966660264.html In a nutshe...

22 views 0 1
View post

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