Skip to content

Change master to main in episode 3 #99

@jt14den

Description

@jt14den

The GitHub default branch is now main not master. However, creating a git repository locally will be by default in a master branch. This creates a problem when we connect the local and remote branch in "Sharing Your Work", Episode 3: https://librarycarpentry.org/lc-git/03-sharing/index.html.

Solution: adopt what GitHub suggests after you create a repository there. This means changing the image in Sharing Your Work from starting with "…or push an existing repository from the command line" under Connecting your local repository to the GitHub repository to the new instructions:

git remote add origin https://github.com/some-librarian/hello-world.git
git branch -M main
git push -u origin main

Possibly include the text of the code rather than the image so it's more copy and pasteable. We also need to then change all references from master to main in the lesson. @scottcpeterson and I are teaching this on 1/29 and can come back with a PR.

Metadata

Metadata

Assignees

Labels

status:in progressContributor working on issuetype:bugCode included in the lesson needs to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions