A
A
anna_makeenko2021-03-31 20:30:09
git
anna_makeenko, 2021-03-31 20:30:09

How to remove hidden commits from GitHub?

There is a repository where the command was executed several times git reset --soft HEAD~1, after which push --force

everything is displayed correctly in the repository, but not in the user's commit history.

For example, there are 10 comments in the repository, and on the user's page it says that he made 15.

If you delete the repository and upload everything again, nothing changes. As far as I understand the history is stored locally, can it be cleared (remove all hidden commits)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
anna_makeenko, 2021-04-03
@anna_makeenko

Support response:

The contribution graph is not considered high priority, so it can take up to 24 hours for changes to appear there. You would probably find that the graph sorted itself out if you waited a day.
I'm afraid it's not possible for you to trigger a rebuild of the contribution graph yourself, but if you notice things still aren't looking right 24 hours after you've made this kind of change, you can write in to us and we 'll do it for you!

PS Within 24 hours (and even several days) deposits were not automatically recalculated.

V
Vitsliputsli, 2021-03-31
@Vitsliputsli

You want something weird, if commits were made, why not display it?
But if you really want to, with such actions, commits are not deleted, they are not displayed in the tree, because. not tied to anything. To remove commits, use git reflog expire or git reflog delete.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question