I cloned the origin remote repo to my local repository using my generated Personal access token. Now I want to push commit changes to my remote repository, git is asking for password.
I searched around here and I found help in setting my origin URL from SSH to HTTPS using;
git remote set-url origin https://<PERSONAL_ACCESS_TOKEN>@github.com/<Username>/<repo>.git
I confirmed the change using git remote -v
its now showing
origin https://ghp_kGuXXXXXXXXXXXXXXXXXXXXXXX8dd@github.com/<correct_user>/<right_repo>.git (fetch)
origin https://ghp_kGuXXXXXXXXXXXXXXXXXXXXXXX8dd@github.com/<correct_user>/<right_repo>.git (push)
Still, when I try git push
it still ask for password. Please I need help. I'm frustrated already. How can I push to my remote repo using on PAT without password prompt.