DEV Community

Discussion on: An Ultimate Guide to Git and Github

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️ • Edited

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.

Collapse
 
suhailkakar profile image
Suhail Kakar

Yes, I agree but since I was talking about GitHub, I mentioned mainas default branch

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Yes, but your title says "Git and Github" so it seems worthwhile to point out that there's a difference and which uses what :D

Thread Thread
 
suhailkakar profile image
Suhail Kakar

Yes, it is , but as you see the heading it is Basic GitHub terms

Thread Thread
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

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.