A
A
Artur Shalohin2016-10-28 00:42:15
git
Artur Shalohin, 2016-10-28 00:42:15

GIT ERROR 403 how to fix?

$ git push -u origin master
remote: Permission to ArturShalokhin/ITMO-WEB-dev.git denied to rapax1.
fatal: unable to access ' https://github.com/ArturShalokhin/ITMO-WEB-dev.git/ ': The requested URL returned error: 403

here is such an error after PUSH , login and password are not requested.
previously used the git, but through another github acc.

Can you please tell me how to fix this bug?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2016-10-28
@BuriK666

use ssh
[email protected]:ArturShalokhin/ITMO-WEB-dev.git

I
Igor Vasiliev, 2017-10-07
@Isolution666

Hello.
--
1) You are trying to upload from another account, I don’t know how to log out of it, but when you install git on your computer, a file is created .githistory, usually shoved into a user folder, like composer data. (for Windows) - for other systems did not recognize.
2) If you find .githistory- and use another account, delete it. Perhaps other files with the word git should also be deleted.
3) Make sure that you made a new registration after deleting the history:

$ git config --global user.name 'login'
$ git config --global user.email '[email protected]'

4) When you create a repository on GitHub, clone it on your computer.
To make sure you open the [Git Bash] console in the right place, just issue the command
If the repository and directory are correct, it will highlight in red the files that need to be added.
If he writes that such a directory does not exist, then go to your folder.
$ cd your_folder- Check the status again.
If git saw your cloned repository, then make a request:
or
Why didn't I start with
$ git init?
If you cloned, then the folder .gitis already there.
Throw your files to this folder and the README.md file, and do
, all files are highlighted? Then you skip
$ git remote add origin....- because the branch is already created when creating the repository on the site.
Now we are loading:
If I'm not mistaken, you can add what you wrote down through the command:
----
The most important thing is to change the user to one that has rights, otherwise uninstalling the program and installing a new one will not help you. There is a command that clears the history cache,
but for some reason it has been useless and non-working lately, so look for a way to clear the cache.
As for the keys and ssh, you don’t have to create them, but as practice shows, not only git , but also composer will not let you work.
Good luck, I hope it helped.
--
PS this method helped me, if you see the contents of the README.md file, look in settingsWhat is your error, fix it, and update your browser. You may still have to choose a topic, or provide a description, just look where you have the checkboxes, they can also cause a headache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question