this post was submitted on 22 Jun 2023
40 points (91.7% liked)

Programmer Humor

19480 readers
30 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] death916@lemmy.death916.xyz 3 points 1 year ago* (last edited 1 year ago) (2 children)

I just got annoyed yesterday when git made the default branch master and had to fiddle to push to githubs main

[–] kredditacc@lemmy.world 4 points 1 year ago (1 children)

You had this problem probably because you created your repo with the GitHub web UI?

I always create the local repo first with git init, make at least 1 commit, and then gh repo create. And yes, my default branch would be master but why should I care if I offend some Americans.

[–] JackbyDev@programming.dev 2 points 1 year ago

git push -u origin master and you're done. Then in the GitHub repo change the "default branch" to master.

Or, git branch -m main to rename locally.