Skip to content

Instantly share code, notes, and snippets.

@esedic
Created May 13, 2024 21:34
Show Gist options
  • Save esedic/5c1912473a826bfecf196ae49fa0f57b to your computer and use it in GitHub Desktop.
Save esedic/5c1912473a826bfecf196ae49fa0f57b to your computer and use it in GitHub Desktop.
Create Github repository from local folder and push files
1. Create repo named <your-repo-name-here> on Github
2. In the chosen folder execute this in your CLI:
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/esedic/<your-repo-name-here>.git
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