Skip to content
techsnow

GitHub

Push and Pull

Create an empty repository on github.com, then connect your local project to it:

git remote add origin https://github.com/you/my-site.git
git push -u origin main     # first push; afterwards just "git push"
git pull                    # download and merge new commits
git clone https://github.com/you/my-site.git   # copy a repo to a new computer