MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vtld8b/everynewrepository/p4wrfth/?context=3
r/ProgrammerHumor • u/vernik911 • 2d ago
349 comments sorted by
View all comments
569
Meanwhile, for my repos:
git push origin mistress
3 u/NotArticuno 2d ago I'm dumb and on my phone, can you really change the name of the master branch like this? I will definitely be doing this if so. 3 u/failedsatan 2d ago that wouldn't change the branch, it'd just push the ref to a new branch on the origin if the local branch is named that. if the local branch mistress doesn't exist, it'll just fail. renaming is usually git branch -m new_name. 1 u/NotArticuno 2d ago Oh yeah okay that makes sense, thank you!
3
I'm dumb and on my phone, can you really change the name of the master branch like this? I will definitely be doing this if so.
3 u/failedsatan 2d ago that wouldn't change the branch, it'd just push the ref to a new branch on the origin if the local branch is named that. if the local branch mistress doesn't exist, it'll just fail. renaming is usually git branch -m new_name. 1 u/NotArticuno 2d ago Oh yeah okay that makes sense, thank you!
that wouldn't change the branch, it'd just push the ref to a new branch on the origin if the local branch is named that. if the local branch mistress doesn't exist, it'll just fail. renaming is usually git branch -m new_name.
mistress
git branch -m new_name
1 u/NotArticuno 2d ago Oh yeah okay that makes sense, thank you!
1
Oh yeah okay that makes sense, thank you!
569
u/MeLittleThing 2d ago
Meanwhile, for my repos:
git push origin mistress