Home > database >  Can not deploy create-react-app with token
Can not deploy create-react-app with token

Time:09-21

I have been trying to deploy create-react-app, but got an error

fatal: repository 'https://github.com/charyyev2000/Portfolio-React.git/' not found

then I created a token and tried to deploy with that,

git remote add origin https://<TOKEN>@github.com/charyyev2000/Portfolio-React.git

again got an error;

Deleted repository, created again and tried to deploy, again got the same error

fatal: repository 'https://github.com/charyyev2000/Portfolio-React.git/' not found

What did I do wrong? or, is there something wrong with my homepage in packages.json?

"homepage": "https://charyyev2000.github.io/Portfolio-React",

I cant deploy from any other of my repositories too. What should I do now.

CodePudding user response:

You are new comer in Git/GitHub tools, I hope you can done this task.

Your remote repository URL is enter image description here

P/S: Sometime, you need

git add .
git commit -m"foo"
git push -v

or you see any guide on your console screen, let's follow guide what you see.

CodePudding user response:

Your repository is probably private.

Try this: git remote set-url origin https://[email protected]/charyyev2000/Portfolio-React.git

Or use an ssh key.

https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent&ved=2ahUKEwjoysreiIjzAhVwTTABHQPHDzIQFnoECGwQAQ&sqi=2&usg=AOvVaw2B_nuIizqk0LtbV4qWtzzH

  • Related