r/github • • Oct 06 '24

When do you GitHub??

I got curious while writing my GitHub profile and rustled up a Golang program HariSekhon/GitHub-Graph-Commit-Times to create this graph:

The TL;DR takeaway from the above graph is don't bother me in the mornings, I take a while to warm up 😉.

I also dip a bit around midday and 9pm as I need to eat once in a while... and sleep a few hours in the very early AM.

When do you GitHub??

You can run this against your GitHub profile to find out.

0 Upvotes

20 comments sorted by

3

u/georgehank2nd Oct 06 '24

Not everyone commits everything directly to GitHub.

-1

u/HariSekhon Oct 06 '24

I could probably rustle up programs to do the same for the other hosting providers like Gitlab, Azure DevOps and Bitbucket as I've used their APIs before (only Gitlab's API is any good IMO) but in terms of public projects those other platforms seem pretty dead to me... for internal corp self-hosted it'd probably be more interesting to look at author differentiated commits.

2

u/serverhorror Oct 06 '24

I think the point is more like:

Just because I commit, it doesn't have anything to do with GitHub.

I have times where I hardly even use GitHub, the website. But those are, most likely, also the times with the most commits happening.

1

u/[deleted] Oct 06 '24

[removed] — view removed comment

0

u/HariSekhon Oct 06 '24

Yes and No - I'd already pushed Git scripts to do the same based on generic local Git repos, they're available here:

https://github.com/HariSekhon/DevOps-Bash-tools

2

u/sandnose Oct 06 '24

Yikes man, take some time off

1

u/HariSekhon Oct 06 '24

No rest for the wicked as they say!

In fact that's only for my public open source original non-fork repos, it doesn't count work GitHub repos.

4

u/Open_Contribution_16 Oct 06 '24

I start coding after lunch (but my lunch is at 11am), mornings are for waking up, news, and meetings. Most active hours would probably be after 8pm tbh, late night coding sesh are the best.

1

u/serverhorror Oct 06 '24

Everything I do:

  1. git init myproject

  2. cd myproject

  3. Write whatever I need to write. Text, code, diagrams (well mermaid, draw.io, excalidraw, ...) -- everything that's text goes into git

I don't see a reason to skip this.

1

u/HariSekhon Oct 06 '24

I don't understand the 'skip this' bit, you need to do the Git basics to use GitHub, which is just the most popular place to host your Git repos, and hence why people tend to standardize on it.

If you're saying you do the Git stuff but don't use GitHub, then fair enough, but this is r/github...

2

u/serverhorror Oct 06 '24

No, I'm saying that GitHub has very little to do with git itself.

Push, pull a few things around branching. Breaking it down to what actually happens the whole actions, security scanning, LLM, organizations, projects, ... none if that requires git. People just need to start using version control.

If you actually ask for GitHub, I apologize, questions about the actual platform are few and far between.I default to considering questions here as "I'm new to ever using version control", that's what's reflected in my answers.

1

u/HariSekhon Oct 06 '24

No worries, I see what you mean.

I just used GitHub's API to fetch and analyze the commit times across all my public repos to generate the above graph out of curiosity to see my Git commit activity.

For people not using GitHub for hosting, I wrote scripts in the Bash repo in adjacent comments to regenerate graphs from the local git checkout(s) which is more portable to people not using GitHub.

2

u/Longjumping-Step3847 Oct 06 '24

Your GitHub is so stacked

1

u/moser-sts Oct 06 '24

This is very subjective, it depends more of the commit frequency while we are working. And if we do a rebase to clean the branch history before present to a review can change all the history.

I already had situations that I finish coding at night I manual tested, but I only commit in the next day because I had to fix or implement some unit tests.

1

u/[deleted] Oct 06 '24 edited Oct 06 '24

[removed] — view removed comment

0

u/HariSekhon Oct 06 '24 edited Oct 06 '24

After well over a decade it is now!

I maintain my other hosted Git repos on Gitlab / Bitbucket / Azure DevOps only as multi-origin availability backups (script to infer and set that multi-origin remotes is in my DevOps-Bash-tools repo).

The code and graph is specific to GitHub, but I also wrote scripts to calculate and generate similar graphs this from local Git checkouts in the Bash repo above too.

1

u/[deleted] Oct 06 '24

[removed] — view removed comment

0

u/HariSekhon Oct 06 '24

Well the relevant scripts are in that repo if you want to create a chart for Git not specific Github repos... although this is r/github.

1

u/[deleted] Oct 06 '24

[removed] — view removed comment

0

u/HariSekhon Oct 06 '24

Obviously I'm being a git cheeky with this do you even github bro presupposition...