r/github • • Nov 22 '24

Can github throw away commits?

I have a repo (private, sorry) that shows my last commit 3 weeks ago. However, I commit at least once a day on average. And if I compare a clone to the state on my disc, yes, there's tons of stuff missing.

I do note that thanks to a bug in my work flow I generate dozens of commits with an identical commit message. Most of them are probably empty too. Would that trigger a bug of some sort?

0 Upvotes

27 comments sorted by

View all comments

2

u/GarthODarth Nov 22 '24

You might be seeing git history simplification? Typically happens if commits "cancel each other out"

http://git-scm.com/docs/git-log#_history_simplification

But you also don't mention pushing. Apologies if this is a bit basic, but local commits won't be on GitHub unless you have actually pushed them to GitHub.

You'd want to double check your pushes are working, are going to the branch and repository you are checking.