I can't push repository by git push -u origin main
or git push --set-upstream origin main
. If I enter either command, shows next line.enter image description here
Asked
Active
Viewed 46 times
-1
1 Answers
1
You need to configure the remote first, then push.
git remote add origin url-to-your-repo

Purna W
- 141
- 4
-
Do you already have a remote repository for this? – Purna W Jun 25 '21 at 17:19