r/github • u/InsanityPilgrim • 17d ago
Question Files not committing in Repo
Hi all, I'm completely new to github and it's generally been going fine for a few days. However, this morning I've encountered an error where I can no longer seem to commit changes. I upload the file, the commits are "Seen" but the file is not being replaced. Nor can the file be deleted. I'm at a complete loss. I've already cleared my cache and signed back in. Thoughts?

0
Upvotes
1
u/Mckayla_Deleon50 6d ago
The empty commits explain why the file didn't change: GitHub recorded a commit, but there was no difference to apply. The web editor can be a bit opaque about that; GitHub Desktop makes it easier to see which files are actually changed before committing.
1
u/nekokattt 16d ago
Why are you not using Git or a Git client like GitHub Desktop?
You do not want to be copy pasting or drag dropping files into the web UI
1
u/Penelope_White94 6d ago
The commits on the 19th showing no changes is the key clue; GitHub can record an empty commit without replacing the file. When you make an edit in the web interface, does the change appear in the diff before you commit?
0
u/InsanityPilgrim 17d ago
Ok, I don't know what changed but in the last 3 minutes something has and it's now loading the updated file. It's still showing the original time it was supposedly uploaded the first time... is this a known thing? up until now updates have taken no longer then a minute.
0
u/shinyfootwork 17d ago
Your most recent commits are just empty.
https://github.com/InsanityPilgrim02/card-forge/commits/main/
As in, they don't have any changes.
gitwarns about this if you're using it, but from the commit messages it seems like you're doing some thing directly in the github ui to upload stuff.