Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to see al the commits? Can't do a pull request...

Frederic Leclercq
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 6, 2021

Hi all,

I've moved some repositories to a new workspace, but now I can't see the previous commits, not even the commit I did after the relocation (which worked fine). Related most probably, I can't trigger a pull request, nor can I see the commit in our JIRA workspace. Anybody tips? It looks like a bug to me, but I can't get in touch with official support as I need to have a paid subscription for that....

Thanks in advanca!
Fred.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 8, 2021

Hi Fred,

I would like to ask for some additional info, so I can better help you with this issue:

1. Is it recent commits that are missing from the repo, e.g. commits from the last few weeks? Or is it older commits?

2. If you make a new clone of this repo now on your machine, can you see the missing commits in your clone with the command git log? Please note that if the commits belong to a branch other than the main branch of the repo, you'll need to do a git fetch and checkout this branch first. I am asking this in order to understand if this is a UI issue, or if the commits are not part of the history.

There are two possible reasons I can think of for this behavior:

i. The issue may have to do with this bug: https://jira.atlassian.com/browse/BCLOUD-19548

If you make a new clone of the repo and you can see the commits locally, it's most likely because of this bug. The commits exist in the repo's history, but they don't show in the UI.
Users have reported that pushing a new commit to the repo solves the issue. If you have no new commits to push, you can create a test branch, push to the test branch, and then delete this branch.

ii. It is possible that a push was done to the repo with the flag --force or -f, which can result in loss of commits from history.

If you make a new clone of the repo and you cannot see the commits locally, it's likely that this is the reason.
If you have another clone of the repo that has these missing commits, you can use that clone to restore them.

Please feel free to let me know how it goes and if you have any questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events