carpentries-incubator / fair-research-software

A course on tools and practices for open, sustainable and FAIR (Findable, Accessible, Interoperable and Reusable) research software
https://carpentries-incubator.github.io/fair-research-software/
Other
7 stars 4 forks source link

Add default branch name to git setup? #107

Open SJaffa opened 2 days ago

SJaffa commented 2 days ago

When making a new repo the default branch name might be main or master. If we want it to be consistent later on (so people don't copy us to type main and get stuck because their's is master), we should add the default branch name to the git config instruction in the setup

git config --global init.defaultBranch main

milanmlft commented 2 days ago

Might be easiest if we copy the setup instructions from the git SwC course?

kkh451 commented 2 days ago

Yes - it gets covered in the installation, but not if learners already have git installed.

The Git Bash installation presents the user with lots of configuration options - we recommend changing the following two and accepting the default values for all of the others:

On Tue, Jul 2, 2024 at 10:22 AM S Jaffa @.***> wrote:

When making a new repo the default branch name might be main or master. If we want it to be consistent later on (so people don't copy us to type main and get stuck because their's is master), we should add the default branch name to the git config instruction in the setup

git config --global init.defaultBranch main

— Reply to this email directly, view it on GitHub https://github.com/carpentries-incubator/fair-research-software/issues/107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD7AAXQVKWXIC2NGDZTQ6MDZKJWO3AVCNFSM6AAAAABKHELNCOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DKNZSGU2DCMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>