I'm trying to save my Angular project to a repo on github and am getting an error saying
Please make sure you have the correct access rights and the repository exists.
I found several posts on here helping people get their SSH keys setup which I also did successfully. When I run git commit -m "some message"
I get a response back saying there's nothing to commit and that the branch is clean. I switched the origin back and forth from the HTTPS
and SSH
links with git remote set-url origin (path)
to see if that would make a difference but still get the same error about having access rights when running git push -u origin "main"
. I don't know what else to do or what I might be missing, can anyone help?
Another approach is to use GitHub CLI gh
gh auth login
gh auth status
) gh repo create
Regarding the last point:
cd /path/to/repo
gh repo create my-project --private --source=. --push
Replace my-project by a new GitHub repository name (or delete your existing one first)
Everything will be initialized and pushed
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.