Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git clone works with Personal Access Token, but not Git push

Tags:

git

github

I was wondering if anyone has faced this problem. I have created a Personal Access Token following this, and also gave full repo access to the access token.

I am able to clone the repo down via:

git clone https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git

But I am unable to push it gives me the error:

remote: Repository not found.
atal: repository 'https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git/' not found

Running git remote -v gives:

origin  https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git (fetch)
origin  https://<Personal Access Token>@github.com/<Org name>/<Repo_name>.git (push)

Please let me know if you need more information.

like image 914
YellowPillow Avatar asked May 09 '19 05:05

YellowPillow


1 Answers

The PO answered the question in a comment above:

Don't worry... I figured it out the account with the access token only had read access...

like image 161
YesThatIsMyName Avatar answered Oct 06 '22 19:10

YesThatIsMyName