Home Creating a new Github repo for local work
Post
Cancel

Creating a new Github repo for local work

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