Binaryfolks 2020 Dev Assignment
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
dsreya98@gmail.com
Posts : 1
Join date : 2020-07-25
Age : 26

Can't upload my work in GitHub account Empty 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
sujoy98
sujoy98
Posts : 19
Join date : 2020-07-25
Age : 25

Can't upload my work in GitHub account Empty 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
Code:
.git/config
file under your repo directory,

2.find url=entry under
Code:
section [remote "origin"]
,

3.Change it from
Code:
url=https://
to
Code:
url=ssh://git
, that is, change all the texts before @ symbol to
Code:
ssh://git
,

4.Save config file and quit. now you could use
Code:
git push origin master
to sync your repo on GitHub.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum