- dsreya98@gmail.com
- Posts : 1
Join date : 2020-07-25
Age : 26
Can't upload my work in GitHub account
Sun Jul 26, 2020 3:52 pm
I use UBUNTU 18.04 with Laravel 7.21 and PHP 7.2.32. When I try to initialize my project folder with the GitHub account then is working. But when I try to PUSH to add the origin of my account to my local GitHub access then there is a fatal error 403, which I can not figure out.
I put the username and password correctly and tried so many times but it's not working.
I executes the following commands for accessing the GitHub with my project files:
git init
git add .
git commit -m "First commit"
git remote add origin https://github.com/sreya-developer/larva.git
git remote -v
git push origin master
The following command is not working:
$ git push origin master
The following error is shown:
remote: Permission to laravel/laravel.git denied to sreya-developer.
fatal: unable to access 'https://github.com/laravel/laravel.git/': The requested URL returned error: 403
I put the username and password correctly and tried so many times but it's not working.
I executes the following commands for accessing the GitHub with my project files:
git init
git add .
git commit -m "First commit"
git remote add origin https://github.com/sreya-developer/larva.git
git remote -v
git push origin master
The following command is not working:
$ git push origin master
The following error is shown:
remote: Permission to laravel/laravel.git denied to sreya-developer.
fatal: unable to access 'https://github.com/laravel/laravel.git/': The requested URL returned error: 403
- sujoy98
- Posts : 19
Join date : 2020-07-25
Age : 25
Re: Can't upload my work in GitHub account
Sun Jul 26, 2020 6:00 pm
I think You need to change your repo config on your PC to ssh way:
1.edit
2.find url=entry under
3.Change it from
4.Save config file and quit. now you could use
1.edit
- Code:
.git/config
2.find url=entry under
- Code:
section [remote "origin"]
3.Change it from
- Code:
url=https://
- Code:
url=ssh://git
- Code:
ssh://git
4.Save config file and quit. now you could use
- Code:
git push origin master
Permissions in this forum:
You cannot reply to topics in this forum