Welcome to the Linux Foundation Forum!

git master needs to be updated to git main for the DevOps and SRE Fundamentals course

Posts: 42
edited December 2022 in LFS261 Class Forum

Hello,

git by default now uses git main instead of git master.
The course content still uses git master by default.

Thanks.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Moved to the correct forum.

    Hi @zacts, please indicate the Chapter and Item you are referring to.

    Thanks,
    Luis.

  • @zacts GitHub changed their default branch name to 'main'. Git still uses 'master'. When you use 'git init' to initialize a repository on your machine, you are using Git and the default branch name will be 'master'.

  • Posts: 42

    Oh, I didn't realize that.

    Thanks for the clarification.

    @ericegan said:
    @zacts GitHub changed their default branch name to 'main'. Git still uses 'master'. When you use 'git init' to initialize a repository on your machine, you are using Git and the default branch name will be 'master'.

  • Posts: 42

    Hello,

    I was refering to the git commands from ch5 of the LFS261 course. Both the course material there and the Lab 3 PDF use 'master' as the primary branch to work with versus the 'main' branch. I was just a bit confused.
    @ericegan noted that this is a change in GitHub and not a change in git itself.

    @luisviveropena said:
    Moved to the correct forum.

    Hi @zacts, please indicate the Chapter and Item you are referring to.

    Thanks,
    Luis.

  • Hi @zacts, yeah, I'm following this thread so I saw the Eric's answer :)

    Many regards,
    Luis.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training