- Create a new repo on Github
- Get clone URL for remote repo
- Clone to local folder
1
git clone https://github.com/dpearceMN/jekyll.git
- This will create a new local folder. Change into it.
- Change to ‘main’ branch (needed for Github)
1
git branch -M main
- Set username and email address if not set globally
- Copy files into local folder
- Add and commit local files to local repo
1 2
git add . git commit
- Push files to remote Github repo
1
git push -u origin main
Creating a new Github repo for local work
This post is licensed under
CC BY 4.0
by the author.