- Login to your account > go to repository > go to new
- Then name the repository
- select public / private
- select add README file if you want. (If you don't create README file you can still create it on your computer and push it to the repository)
- Follow these commands to create repo from CLI
git init git add . git commit -m "first commit" git branch -M main git remote add origin "your https link here" git push -u origin main
-
Go to code in your repository and copy HTTPS link
-
Enter following command git clone copied repo HTTPS link