Created
March 4, 2026 10:16
-
-
Save sumitsahoo/91d528e29f1a3ba0c0aa58aeb1a30d8c to your computer and use it in GitHub Desktop.
Push an existing repository to GitHub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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