For some reason my Github repo is not showing the latest couple of commits. I did git add, git commit, and git push like I always do. But tonight it seemed to not have registered on the repo's commit history.
When I do a git log, I can see my latest commits. When I do a git pull into a new folder to test it, my changes are there. When I manually take the commit url and put it in my browser, I can see the changes. It is just not showing up on the commit history and the overall number of commits on the project is not updating. Why is this?
Commits must be made with an email address that is connected to your account on GitHub.com, or the GitHub-provided noreply email address provided to you in your email settings, in order to appear on your contributions graph.
On GitHub, you can see the commit history of a repository by: Navigating directly to the commits page of a repository. Clicking on a file, then clicking History, to get to the commit history for a specific file.
Viewing a list of the latest commits. If you want to see what's happened recently in your project, you can use git log . This command will output a list of the latest commits in chronological order, with the latest commit first.
To find out which files changed in a given commit, use the git log --raw command. It's the fastest and simplest way to get insight into which files a commit affects.
Check first your status and branches:
git status
git branch
If you don't see a branch preceded with a *
, that means you are working in a detached HEAD branch.
If that is the case, simply reset your master branch to your current HEAD and push again:
git checkout -B master @
git push
The OP jebmarcus confirms in the comments to be on the master branch though, and with a clean status:
When I refreshed the repo this morning everything is working again
That must have been a glitch on GitHub side.
There were connection issues on GitHub (there was a "Minor service outage" on August 3rd -- GitHub status messages).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With