Skip to main content

Working with remote repositories

  1. Clone a repo from GitHub
git clone git@github.com:my_username/my_repository
cd my_repository
  1. Add a remote to an existing local repository
cd my_project
git remote add origin git@github.com:my_username/my_project
  1. Push your changes from local to remote
git push origin main