Skip to content

Instantly share code, notes, and snippets.

@belkarx
Created December 28, 2021 07:09
Show Gist options
  • Save belkarx/613e92bf296761658aa890f612c0cb48 to your computer and use it in GitHub Desktop.
Save belkarx/613e92bf296761658aa890f612c0cb48 to your computer and use it in GitHub Desktop.
Add a local repository to github
# create github repo (named EXAMPLE) using github's web interface
cd EXAMPLE
git init
git add .
git commit -m "added files"
git remote add origin git@github.com:belkarx/EXAMPLE.git
git remote -v
git push --set-upstream origin main
git status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment