Welcome to the Linux Foundation Forum!

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

Options
zacts
zacts Posts: 14
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.

Comments

  • luisviveropena
    Options

    Moved to the correct forum.

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

    Thanks,
    Luis.

  • ericegan
    Options

    @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'.

  • zacts
    zacts Posts: 14
    Options

    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'.

  • zacts
    zacts Posts: 14
    Options

    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.

  • luisviveropena
    Options

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

    Many regards,
    Luis.

Categories

Upcoming Training