Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve "fatal: unable to access " error

I'm a beginner to GitHub.I need to send a pull request to the master branch. when i typed the code

git push origin master

It gives me the error

fatal: unable to access 'https://github.com/www-prolificme-com/mahawiki/': The requested URL returned error: 403

Updated

screenshot of the Git Bash

like image 745
brean Avatar asked Oct 25 '25 04:10

brean


1 Answers

You mentioned you are trying to pull from git but the command is git push. Anyways, most probably you are getting this error because your repo url is not set locally.

  1. If this is the first time you are sending git request from your system, you might want to setup your username by git config --global user.name "John Doe"
  2. If you have already used git on your system, try checking the git configuration on your system using git config --list command to check whether your repo URL is setup or not.
  3. If the url is not setup run git remote set-url origin https://github.com/www-prolificme-com/mahawiki/
  4. Run git remote -v to verify if your url is setup
  5. git add .
  6. git commit -m "your message"
  7. git push origin master
like image 178
bot Avatar answered Oct 26 '25 19:10

bot