Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to remove commit that does not exists but it listed on web ? Edited

So the situation is like this(web):

2020-09-28 21_21_36-bedstar _ bedstar — Bitbucket.png

This is what I see on a WEB. commit 7d00(A) is seen there and was done via WEB interface - unfortunately, it does have changes from 3f3f(C) as child. Commit f513(B) has changes from C too.

Commit C and B was done via HTTPS and SSH.

There is no branch but web states branch might be (D) - but it is not,

On a console, I did perform this. I do not see 7d00 - even for a rebase.

Any idea what to do?

$git fetch origin
$git checkout origin/master
$git reset --hard origin
HEAD is now at f513.......

$git branch
* master

$git log --all --oneline
* f513 (HEAD -> master, origin/master, origin/HEAD) XXXX
* 3f3f XXXX
* 8bfe XXXX
* 5c02 XXXX
* ad8e XXXX

### did try - but no help - cannot see 7d00
$git fsck --lost-found
$git fsck --unreachable

 

1 answer

1 vote
Jimmy Seddon Community Leader Sep 28, 2020

Hi @R,

This is a very interesting situation.  Looking at the image it really looks like some how you have managed to get an orphaned commit.

Have you tried running:

gitk

or:

git log --graph --reflog

Either of those might help you find the missing commit locally.  I think once you have found it that will make it easier to be able to get the changes included in the master branch.

I hope that helps!

-Jimmy

Thanks for the reply. rlog and gitk just point me to f513(B), both are on the master branch and both have parent 3f3f(C). Repo is in fast-forward mode. It is not possible to see commit 7d00(A) after clone. Interesting is that when there was autotaging - it did tag this commit(A), but after checking logs it does tag previous one(B) - but the tag A on web GUI shows correctly. 

Jimmy Seddon Community Leader Sep 29, 2020

That's really weird!?  It might be worth putting in a ticket to Atlassian Support to have them look at the logs on the back end.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,878 views 0 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you