- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 66
 
Description
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.