Why aren't my files showing up on GitHub after my initial commit?

I’m experiencing issues with my initial upload to GitHub. I’ve set everything up, including the README commit and pushed my files to the master branch, but the changes are not showing up on the GitHub site.

For example, when I execute:

git commit -m "adding some files for the first upload"

I receive the following feedback:

[master abcdefg] adding some files for the first upload
2 files changed, 128 insertions(+), 0 deletions(-)
create mode 100644 index.php
create mode 100644 app.js

It looks like the commit is successful on my end, but the updates are not reflected on GitHub. Is there something I might have overlooked? How long does it usually take for changes to be visible?

Yeah, classic beginner mistake! You need to run git push after committing. Think of commit as saving your work locally, and push as uploading it to GitHub. Without pushing, GitHub doesn’t know what you’ve done on your machine.

Yeah, you haven’t pushed your commits to GitHub yet. I hit this same problem when learning Git - you can have tons of commits locally, but GitHub won’t show any until you push them. After committing, run git push origin master to send those commits to the remote repo. What clicked for me was understanding Git is distributed - your local repo is totally separate from GitHub’s copy until you sync them with push/pull. Quick tip: check your branch name with git branch first since many repos use main instead of master now.

This happened to me when I started with Git. You committed locally but didn’t push to GitHub. git commit only saves changes on your computer - GitHub can’t see them yet. Run git push origin master or git push origin main (depends on your branch name). Refresh GitHub after it finishes and your files should show up. I made this mistake tons of times before commit-then-push became automatic.

You’re mixing up local and remote operations. When you run git commit, you’re just saving a snapshot to your local Git history - that’s why you see the confirmation about changed files. But this commit only exists on your computer until you push it to GitHub. After committing, run git push origin master (assuming you’re on master branch) to upload your commits to the remote repo. Once that finishes, GitHub will show your changes immediately - no delay. I had this same confusion my first week because ‘commit’ sounds like it should finalize everything, but it’s really just saving locally.