I cannot see my all commits history which I have been made in a repository. I want to see all my commits history in a github repository but can't see any option for that. It would be great if I get help on this.
In github why I cannot see the all commits history I have made in a single repository? I cannot see the option to see all my commits history. It would be great if I get help on this . Thank you!
Videos
I've got a client who would like to better understand how much time I dedicate to their project, which is a very cool thing because that specific repository gets an insane amount of commits very week.
I would love to print the entire history since Jan 1st 2021 but GitHub uses a pagination system, which breaks the history in multiple pages.
Is there any trick to see the entire list of commits ina single (very long, sometimes) page? That way I could send the link or even print it and deliver everything by hand, in a nice envelope.
Thanks!
I find a lot of value in looking at how other's organize their codebase via digging through their commit history. Especially if I know how that person thinks already
I normally fork a repo, and open it into VScode. There's two well known extensions called (1) git history and (2) gitLens. But I don't know how to configure it the way I want easily. Youtube didn't have an answer either.
What I want to do is the following:
-
(A) Quickly see all changes and commits to one file
-
(B) See normal commit history to master branch for everything
For (A), I want the following workflow
-
Pick a file of interest.
-
Run a command
-
Pick the first commit done on file
-
Left side, see previous commit, right side see changes
-
Hit →
-
This shows next commit / diffchange
For (B), I want the following workflow
-
-
Show git history of entire master branch, similar to stackoverflow.
-
-
2. Freeze the pane at the top, kind of like what you do to microsoft-excel header-rows.
-
-
-
This shows commit message / history overview only. Fills up 10% of screen, with it's own vertical scrollbar.
-
-
-
3. Click a commit date, organized with most recent commits down bottom
-
4. Git diff log is shown, similar to what you view in github commit normally.
-
-
-
Fills up 90% of screen. Shows file changes top to bottom, left shows previous file, right side changes
-
-
Side note as well, if anyone knows how to do this or knows of a service -
I want to subscribe / watch a github repo, but only see commit changes only to master + a small preview of changes right in the email itself. As of now github shows you issue / PR requests, and just a commit name overview change.
This way I can just learn things faster since github is just a massive learning resource that I haven't really used properly
I've only used GitHub so much is why I ask.
Thanks
This may be a very newb question but here goes: I want to click on someone’s repo, or even one of my own, and be able to see the history of changes as the website codebase kept getting bigger.
I want to study how a web application went from 10 lines of code to 500 lines of code and study every change to see how he/she built the website.
One way I can think if is to click on the first SHA, search for the new lines of code, click on the second SHA, search for new lines of code, repeat, etc. is there an easier way?
I have been working on a project from my windows pc, i then commitedthat project and pushed it and decided to switch to using my mac, so i did git clone from my mac and then started working on it there. The commits from my mac seem to have worked as when i go to my repository on the main branch (the only branch) i see my commits from my mac, however, on the repository it shows two people that contributed to it, but both of them are me and are my usernames.
I am logged into VS code through the Github through the same account but it somehow registered that as two people. Also, when i commit from my mac, my Github commit activity does not update. But when i commit from my windows it registers the commit activity.
What could be the issues? Is there a way i can change my account's commit activity from the last 4 days too or is that not possible anymore, i have been commiting for the pat 4 days but no activity is shown on my account.
Thanks!
Please note: this is not the right answer, although I hope it continues to be useful. NB it has been made a "Community" answer so I don't receive any points from upvotes
To see all commits for a specific branch (so this does NOT actually answer the original question, which is to see commits across all branches):
Click "Code" (left-most tab) on the main page for the repository. Under those 4 buttons ("master", "Go to file", "Add file", "Code") there is a blue rectangle. At the right end of that is a clock icon and a number. If the viewport of your browser is wide enough it even includes (hurrah) the word "commits". This is a link. Click and ENJOY!!!
NB the URL for this page is like this: https://github.com/myProfile/myRepo/commits/master

This is an old feature of GitHub but not really that intuitive.
Using the GitHub website:
- Click a project
- Click the 'Insights' tab (moved inside the Meatballs menu)
- Click 'Network'
- Click on the 'node/circle' for each commit to go to that commit.
Diagram below.

Additionally, you can drag to the left to see all commits throughout time for all forks and branches.
Ive tried gource but its not quite im looking for. Im looking for a tree like representation of the timeline of the commit history
Hi guys,
So I have a private repo for a project I’ve been working on that I’d like to make public. Previously, I had database info hardcoded in the code but recently moved to env vars as I productionize. I’m ready to make the repo public so others can view, but I’m worried about whether they’ll be able to see the hardcoded database user info in the commit history.
So I was wondering - if I make a private repo public, can others view the commit history/diffs from when it was private?
Yes they will be able to see the history. An easy fix is to delete the .git directory, initialize git again and push force. This will delete all history of the repo.
I’m surprised nobody told you how to avoid that. You can squash your commit history into one commit. There are multiple ways to do it. One is to make an orphan branch and make a single commit from it:
git checkout -b new-master --orphan # New branch with no parents (no commit history)
git checkout master . # Grab all code from current master
git branch -D master # Delete the master branch
git branch -m new-master master # Rename your new master to master
git push origin master:master --force # Push your master over github's master. Github will fail if you don’t have force
This assumes you have only one branch and no tags. I assume some garbage collection on github will eventually delete the dangling commits from your old master eventually, but nobody should be able to see your previous commits.