DjangoGirls / tutorial

This is a tutorial we are using for Django Girls workshops
http://tutorial.djangogirls.org/
Other
1.53k stars 1.86k forks source link

Git Updated #1680

Closed nikhiljohn10 closed 3 years ago

nikhiljohn10 commented 3 years ago

Git updates

NOTE: This update is only for the English language.

This is a followup from #1678

nikhiljohn10 commented 3 years ago

I don't see any issues with this (though I still don't see why we need to rename from master). Leaving it open for other reviewers to take a look.

Every commits I did in this PR as well as my other PR is from the current feedbacks i found from Djangogirls gitter chat and my personal experience of using Djangogirls tutorial in the beginning of my Django learning.

What I learnt is that it creates more confusion for users to see one thing in their pc and different in tutorial. Since tutorial depends 100% on Github.com for deployment, I highly recommend updating master to main inside the tutorial.

I have read the discussion on changing to main branch on development side of tutorial and I agree that it is not needed while contributing to Tutorial. But I feel otherwise about it, inside tutorial.

nikhiljohn10 commented 3 years ago

@ekohl The option -b which we used with git init is described below from https://git-scm.com/docs/git-init:

-b --initial-branch= Use the specified name for the initial branch in the newly created repository. If not specified, fall back to the default name: master.

This means that the version of the git of the user does not affect the update I proposed.

das-g commented 3 years ago

@ekohl The option -b which we used with git init is described below from https://git-scm.com/docs/git-init:

-b --initial-branch= Use the specified name for the initial branch in the newly created repository. If not specified, fall back to the default name: master.

This means that the version of the git of the user does not affect the update I proposed.

It seems like -b / --initial-branch was added in Git 2.28.0 released 2020-07-27. The documentation for Git 2.27.0 doesn't mention it, yet.