r/github • • 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?

Commits listed on the 18th or before were fine. all commits on the 19th are failing.
0 Upvotes

11 comments sorted by

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/InsanityPilgrim 6d ago

But thats how I see an issue... I KNOW the file is different, i can open up the file in question and can see it's different.

From what i gather the fix from my end was changing its recorded version. It's how it deals with searching for updates, since it isn't automatic (I specifically said dont update automatically), i have it looking after the user requests too. It then see's a new version and downloads it. if that was all it was i could understand, but the commit shows as nothing changed, yet it clearly is different (on that you'll just have to trust me)... that's whats bugging me.

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/Mckayla_Deleon50 6d ago

They said they’re completely new to GitHub, so the web UI is probably the only workflow they know so far. The empty commits are a useful clue here: a Git client would flag that no file changes were actually included.

0

u/InsanityPilgrim 15d ago

because i have zero idea what they are... "I'm completely new to github"

1

u/TangeloHappy4687 5d ago

Fair enough. Git is the tool for keeping track of changes; GitHub is the site where you can store and share the repository. GitHub Desktop gives you buttons for the basic Git steps, so you don't have to start with commands.

0

u/nekokattt 15d ago

https://docs.github.com/en/get-started/git-basics

This is how you should be interacting with GitHub to create, update, and access your code

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.

git warns 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.

0

u/InsanityPilgrim 16d ago

So i'm assuming from all this is that it likely saw the original update i pushed (mostly the first one of the day)... but just didn't seem to update the site for a really long time (it was roughly 50 minutes)? and each time i tried to upload it again, it saw the same thing over and over so it didnt change it, making it look like nothing was happening even though it was just a really long site change?