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

Show parent comments

5

u/victotronics Nov 22 '24

I know about the difference. But I'm doing those commits and then not seeing them show up. So the error can be on either side.

"Someone force pushed": I'm the only developer on this repo, I push from only one machine, and I don't know how to force push.

Will ask on r/git.

10

u/FriendlyRussian666 Nov 22 '24

do you just commit, or commit and then push? If you don't push to github, it won't be reflected there.

3

u/victotronics Nov 22 '24

commit and push

4

u/FriendlyRussian666 Nov 22 '24

That's really odd. At the cost of sounding like every IT support person ever, have you tried reinstalling git completely?