Skip to content

Instantly share code, notes, and snippets.

@sumitsahoo
Created March 4, 2026 10:16
Show Gist options
  • Select an option

  • Save sumitsahoo/91d528e29f1a3ba0c0aa58aeb1a30d8c to your computer and use it in GitHub Desktop.

Select an option

Save sumitsahoo/91d528e29f1a3ba0c0aa58aeb1a30d8c to your computer and use it in GitHub Desktop.
Push an existing repository to GitHub
# push an existing repository from the command line
git remote add origin https://github.com/username/reponame
git branch -M main
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment