Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github repo not showing latest commits

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?

like image 533
kevin_b Avatar asked Aug 03 '16 04:08

kevin_b


People also ask

Why is my GitHub not showing my commits?

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.

How do I see recent commits in GitHub?

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.

How do you get to the latest commit in git?

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.

How do I see the last changes commit?

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.


1 Answers

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).

like image 66
VonC Avatar answered Oct 19 '22 23:10

VonC