Comments (11)
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.
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.
main as convention has broad adoption. Please rename the main branch to be called ... main.
from obsidian-sample-plugin.
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.
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.
I stand with master
, this is my GitHub settings:
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.
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.
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.
Yeah, thanks for the awareness, let's keep watching the situation as well.
from obsidian-sample-plugin.
For GitHub, the default branch has been main since 2020-10-01
from obsidian-sample-plugin.
I stand with
master
, this is my GitHub settings: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)
from obsidian-sample-plugin.
Related Issues (20)
- Feature request - TSDoc integration HOT 1
- Feature request — expanding the sample plugin with more examples/features HOT 1
- Failed to run `npm run dev` HOT 1
- Can't build plugin with npm run dev HOT 3
- npm install not working? HOT 1
- Add additional Functionality to the Plugin HOT 2
- [BUG] TypeScript Compile fails in Sample Plugin with TypeScript `5.1.6` HOT 1
- [BUG] Failed to compile on Linux Pop!_OS 22.04 LTS HOT 2
- esbuild.config.mjs sourcecode HOT 1
- Minify production build
- My mistake
- Config Dir sync no longer working (Reported .DS_Store issue) HOT 1
- Organise typescript sources into separate src hierarchy
- adding a toggle button HOT 1
- Display download successful, but not in the local file library HOT 1
- Custom View Explorer
- [feature request] multiple cursor positions (each linked to a different tab) for same file HOT 2
- obsidian fails to load sample plugin HOT 1
- Version number for tags and releases HOT 1
- License
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-sample-plugin.