2. Main: When you create a new repository, it comes with a default development branch.
Last time I checked, the default branch was still called master. Calling it main instead is really just a weird thing that github does by default.
git commit -m "added index.js file"
Please don't... That's such a bad habit and sooo many newcomers are doing it because all the tutorials say so. Use git commit and write a proper commit message.
Suhail is a software developer specializing in full-stack web and mobile application development. He is interested in contributing to open source and building Web3 applications.
Suhail is a software developer specializing in full-stack web and mobile application development. He is interested in contributing to open source and building Web3 applications.
Without mentioning the git default, it's a bit misleading though. It makes sense if you already know git anyway, but that's not who this post seems to be for though.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Last time I checked, the default branch was still called
master
. Calling itmain
instead is really just a weird thing that github does by default.Please don't... That's such a bad habit and sooo many newcomers are doing it because all the tutorials say so. Use
git commit
and write a proper commit message.Yes, I agree but since I was talking about GitHub, I mentioned
main
as default branchYes, but your title says "Git and Github" so it seems worthwhile to point out that there's a difference and which uses what :D
Yes, it is , but as you see the heading it is
Basic GitHub terms
Without mentioning the git default, it's a bit misleading though. It makes sense if you already know git anyway, but that's not who this post seems to be for though.