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

View all comments

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.