poltremote.blogg.se

Git add remote master branch
Git add remote master branch




git add remote master branch git add remote master branch

NOTE: Changing the default branch to "main" also has the benefit of starting with "ma" so that autocomplete muscle memory still works. Remote: Create a pull request for 'main' on GitHub by visiting: I'll just "git branch -m master main" and then push it back! Remember that -m is -move so your history isn't changed! Even better I can " git push -u origin main" to set the upstream at the same time. I have had dozens of git repositories that have 'master' as the main branch. So we see that while the word master doesn't always connote slave, for many, it's evocative via basic word-association and they just don't want to look at the word on their prompt all day.

git add remote master branch

Git likely uses master in the context of "master copy" or "master recording." UPDATE: There is Good analysis of the whole main branch convo in the Git Rev News: Edition 65. You might say, "I'm all for not using master in master-slave technical relationships, but this is clearly an instance of master-copy, not master-slave." The Internet Engineering Task Force (IETF) points out that "Master-slave is an oppressive metaphor that will and should never become fully detached from history" as well as "In addition to being inappropriate and arcane, the master-slave metaphor is both technically and historically inaccurate." There's lots of more accurate options depending on context and it costs me nothing to change my vocabulary, especially if it is one less little speed bump to getting a new person excited about tech.






Git add remote master branch