Giter VIP home page Giter VIP logo

Comments (11)

lishid avatar lishid commented on July 22, 2024 9

Honestly I hated this part from GitHub because git still uses master when you init a repo, so it's just a lot of confusion regardless. For now though, I haven't seen anyone complain about it, and it's actually easier to submit repos with master to our releases database since master is assumed by default so one does not have to add the additional "branch": "main" to the JSON file.

Will leave this issue open if anyone else runs into this. Feel free to leave a comment.

from obsidian-sample-plugin.

00dani avatar 00dani commented on July 22, 2024 5

When you install Git now, it actively encourages you to set the init.defaultBranch option to main. Keeping the original default branch name takes more effort, since you have to explicitly opt out.

I think at this point main is the norm, and given the reasons for the change, Obsidian probably ought to follow the trend.

from obsidian-sample-plugin.

quinn avatar quinn commented on July 22, 2024 5

main as convention has broad adoption. Please rename the main branch to be called ... main.

from obsidian-sample-plugin.

paarthenon avatar paarthenon commented on July 22, 2024 3

Just chiming in, I feel like one of Obsidian's true strengths is being platform agnostic. It's your data, and it doesn't care where you put it or how you manage it. In my opinion, creating fragmentation in order to be consistent with the decisions of the GitHub platform goes against that ethos.

The discussion around the default branch name has been covered thoroughly elsewhere and I'll leave that conversation to those participants, but I do think it's fair to say that main is the deviation from the norm, not master.

from obsidian-sample-plugin.

lishid avatar lishid commented on July 22, 2024 3

Thank you for the comment. Fortunately, Obsidian can work with both master and main branches, so developers can choose whichever they prefer!

from obsidian-sample-plugin.

reorx avatar reorx commented on July 22, 2024 2

I stand with master, this is my GitHub settings:
image

which can be confusing for people new to this.

This is unlike other technical details that are necessary to know, it's a proof of how politics changes our life.

I think people should understand this, this is a proof of

from obsidian-sample-plugin.

thesophiaxu avatar thesophiaxu commented on July 22, 2024 1

Makes sense! I read a while ago that the Git maintainers are trying to switch to main as well, but it seems that the current version just adds a global switch to change the default branch: https://lore.kernel.org/git/[email protected]/

Feel free to close it if you like, or we can wait for someone else to chime in :)

from obsidian-sample-plugin.

lishid avatar lishid commented on July 22, 2024 1

Thank you, that is a great data point. Looking at the docs, it seems that the default value is still master for now. Once git decides to permanently change defaultBranch's default value to main we will consider switching over.

from obsidian-sample-plugin.

lishid avatar lishid commented on July 22, 2024

Yeah, thanks for the awareness, let's keep watching the situation as well.

from obsidian-sample-plugin.

claremacrae avatar claremacrae commented on July 22, 2024

For GitHub, the default branch has been main since 2020-10-01

from obsidian-sample-plugin.

svonjoi avatar svonjoi commented on July 22, 2024

I stand with master, this is my GitHub settings: image

which can be confusing for people new to this.

This is unlike other technical details that are necessary to know, it's a proof of how politics changes our life.

I think people should understand this, this is a proof of

I created a meme about this (i didn't knew about this usefull "repository default branch" setting)

meme

from obsidian-sample-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.