r/github • • Oct 27 '26

Discussion On GitHub, what shouldn't you forget before releasing a project and spreading it to the public?

As a person who's still learning development, i would like to understand what are your tips and essential checks before making a project visible, based on your own experience

59 Upvotes

45 comments sorted by

77

u/NullPounce Oct 27 '26

set email to private.

12

u/Decent_Run9628 Oct 27 '26

I had to make a new e-mail because of this 😵‍💫

8

u/Cellari 29d ago edited 29d ago

What if the commits have my email? And what kind of mail I'm expected to have? I also am soon making my repo public.

Edit: I'm also expected to have contact information on the repo for license inquiries

1

u/NullPounce 29d ago

delete the repo and start over and pray you don't have forks, if you're email is in data dumps then it can easily be tied to your first and last name and sometime your address...

1

u/PopehatXI 29d ago

You can update your email on old commits. Delete the REPO on GitHub. Fix the local copy’s commits. Publish new version

5

u/Dazzling_Cherry_6513 Oct 27 '26

It’s annoying how this isn’t mentioned at all until you realize…

Have some old repos still with it showing, hopefully doesn’t cause me any problems in the future

3

u/Champagne_Bunnny Oct 27 '26

Oh fuck. I need to check this

2

u/darthwalsh 29d ago

Either it's out there, or not. Too late to do anything different

1

u/Champagne_Bunnny 26d ago

Oops, then. Ah well.

1

u/serverhorror 29d ago

LOL ... no, that's an immediate no go for me.

1

u/Afflictionista 29d ago

This is the first thing one should do when creating a GitHub, GitLab, GitAnything account.

35

u/brunocborges Oct 27 '26

NOTICES.txt with all 3rd party software your project uses, and their licenses. Automate this.

LICENSE

CONTRIBUTING.md

Issue and PR templates. Disable PR and/or issues if you don't want to review incoming stuff.

A mailing list or Discord I'd you want to engage community - depends on what type of user your project aims for.

Tight control over GH Actions workflows because you have limited free minutes (unless you are willing to pay for more).

A good website landing page doesn't hurt.

Binaries/releases for low friction evaluation.

3

u/Decent_Run9628 Oct 27 '26

Noted

2

u/joshcam Oct 27 '26

Or self-host your gh runners, easy and free(ish) if you run on your own hardware.

2

u/Decent_Run9628 Oct 27 '26

I think i want the big company to have their CPU on 100% 😅

3

u/joshcam Oct 27 '26

It’s not too hard to hit the free limit if you have tests running on every pr commit with heavy agentic work, so just keep an eye on it like Bruno said. Also happy 🍰 day!

2

u/rabinapps 29d ago

Very true. I ran into these issues which inspired me to create Kinhin. It’s open source, free, autoscaling self hosted runners for macOS

5

u/ShaneCurcuru 29d ago

A README.md that clearly explains in 1-2 sentences what the tool actually does at the top.

Oh, and everything brunocborges said, where the minimum is having a LICENSE file (unless, of course, you don't want to allow re-use, which is fine too).

Pro Tip: automate this for all your repos:

https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file

1

u/zerocipherdev 26d ago

Isn't actions free as long as the repos are public? Iirc, actions minutes counts only when it's run on private repos.

1

u/brunocborges 26d ago

There is a quota of free minutes

13

u/Felfedezni Oct 27 '26

Add a license

11

u/brainExploded99 Oct 27 '26

Don't leave any remnant information about your machine, keys, etc

3

u/Decent_Run9628 Oct 27 '26

Trust me, i learned this the hard way 😂

7

u/Immediate-Welder999 Oct 27 '26

redact secrets before you push your code, you can use prismor for it

3

u/Decent_Run9628 Oct 27 '26

I remember my first days when i pushed my .env intentionally because i wanted to deploy a project and it wasn't working, because i didn't know what a .env inside the service was 😂

2

u/Immediate-Welder999 Oct 27 '26

Been there 😂

8

u/therealkevinard Oct 27 '26

Re-read your commit history because others certainly will.

That one sleepy 2am commit 3 months ago where you included the prod db credentials can bite you.

Depending on what you have in history, imo I wouldn’t rule out a hard re-init.

3

u/Decent_Run9628 Oct 27 '26

So the people waking up with 50.000$ dollar bills are real 😂

8

u/throwaroo202020 Oct 27 '26

Squash your commits.

2

u/Decent_Run9628 Oct 27 '26

My first pull request which was last year had about 43 commits. It was the biggest mess, and embarassing. Noted 😂

4

u/mkosmo 29d ago

Bad to say this as a general rule. Just make sure you don't have useless commits.

Lots of commits isn't a problem, unless they're useless commits.

17

u/JacobStyle 29d ago

Everybody in this thread is being so careful. Meanwhile, I dumped all my disorganized, loosely commented, magic number heavy video game cheats on there with nothing but a readme.md saying "These are my video game cheats." Using Github like a 2006 Youtuber.

7

u/Slight-Prize9661 29d ago

Don't upload any .env variables or api keys

4

u/EveningCandle862 Oct 27 '26 edited Oct 27 '26

Double-check your personal email isn't exposed in commits.
(if this matters to you)

Squash will not solve this, you may have to use things like filter-branch/filter-repo to rewrite the commit history for the repository if you already pushed.

And of course, change the privacy settings for your email before this is done under Github account settings.

2

u/KindDigital 29d ago

Dang I’m a newbie and learning lots on this thread

1

u/serverhorror 29d ago

It's a marathon, nit a sprint. No one is looking for your project but for a solution to their problem.

If you want people to use your stuff, make sure your reputation is good (e.g. by having a history in well known open source Projects)

1

u/YourLastCall 29d ago

I honestly thought about just remaking the repo with the clean code once I'm done. Change the name keep my stuff private. Thoughts?