Hosting a project on GitHub

Guide to hosting a project on a remote GitHub repository:

Quick setup — if you’ve done this kind of thing before

HTTPS https://github.com/dazeblacksnow/devprofile.git

SSH git@github.com:dazeblacksnow/devprofile.git

If you choose to go with SSH, you have to change remote origin URL below.

Create a new repository on the command line:

                    
                        echo "# daze-devprofile" >> README.md
                        git init
                        git add README.md
                        git commit -m "first commit"
                        git branch -M main
                        git remote add origin https://github.com/dazeblacksnow/daze-devprofile.git
                        git push -u origin main
                    
                

Push an existing repository from the command line:

                    
                        git remote add origin https://github.com/dazeblacksnow/devprofile.git
                        git branch -M main
                        git push -u origin main