Missed Team ’24? Catch up on announcements here.

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

Bitbucket commits no longer show recent commits

Gayle Apfel April 25, 2019

When I click on 'commits' in my repo, I only get commits up to  a tag in June 2018. Future tags and branches exist, but if I click on them, bitbucket just tells me there are no commits to display. I want to create a pull request for the branch I was working on, but bitbucket says there are no new commits on this branch and won't generate a pull request for me.

The weird thing is that if I view the source for the branch I'm working on, the files all have messages from the recent commits. So why can bitbucket not see them?

2 answers

0 votes
Gayle Apfel April 29, 2019

Temporary solution (doesn't answer the question, but it at least enabled me to create a pull request and continue working):

  1. Create a new repo on Bitbucket with a new name
  2. Set a new remote branch: 

    • git remote add upstream git@bitbucket.org:username/new_repo.git
  3. Push all open branches and tags to the new remote: 

    • git push upstream master
      git push upstream branch1
      git push upstream tag1
  4. Finally, set the new remote as the origin (do this as a separate step in case there is a problem with the preceding steps):
    • git remote set-url origin git@bitbucket.org:username/new_repo.git

       

Now the new repo is up to date, and I can generate a pull request from there.

0 votes
Marlan Perumal April 25, 2019

I'm on the same team as the OP. If I try to clone the repo, I get all branches with all the commits as they should be. However they still do not appear in on the Bitbucket web page

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events