4

I've recently been trying to merge in some changes from a number of branches, when I discovered that the changes I made have completely disappeared.

We use Bitbucket for our source code hosting, and use Git through SourceTree.

When I view the specific commit in the Bitbucket UI, I can clearly see that files have changed (and on the date it did). Bitbucket view of code

If I look in Source Tree however, whilst the commit appears, there are no file changes in the UI. On top of this, if I do a search (or Git History) on any of the modified files, no changes are displayed. enter image description here

Has anyone come across this before, and maybe have any suggestions as to how I might fix this?

It seems really strange.

If I go back to that commit, and try and merge in, it says that I am "already up to date".

The other thing I find strange is that the dates in SourceTree and Bitbucket don't seem to correlate.

Thanks,

askrich
  • 570
  • 5
  • 20
  • 2
    I'm having the same issue. It seems to resolve with time. I think it has to do with them using a CDN, but I'm not sure. It's very inconvenient sometimes! – M-Pixel Mar 10 '15 at 22:04
  • How long did it take for it to reappear? – askrich Mar 11 '15 at 13:22

1 Answers1

1

In my case it was because the OAuth token that was allowing Sourcetree to authenticate with Bitbucket had expired, and Sourcetree's authentication with Bitbucket was silently failing. You can check this in Sourcetree > Tools > Options > Authentication > Account > Edit > Credentials.

I found it easiest to fix this by changing to Bitbucket app passwords and using that in Sourcetree https://stackoverflow.com/a/40946844/13437842

Matthew
  • 1,182
  • 1
  • 8
  • 16