290
you are viewing a single comment's thread
view the rest of the comments
[-] dohpaz42@lemmy.world 5 points 12 hours ago

If you haven’t already found it, you need to change your global git config (~/.gitconfig):

git config --global init.defaultBranch main

(or whatever you want to call it; e.g. daddy would work too)

For any existing repositories you want to run the following command in the existing repository root (./.git/config):

git config set init.defaultBranch main

this post was submitted on 09 Dec 2025
290 points (98.3% liked)

Programmer Humor

27778 readers
1578 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS