Skip to content

Commit

Permalink
Update error.json
Browse files Browse the repository at this point in the history
Added new error, description and its solution in errors list.
Related to Issue ID devvsakib#172
  • Loading branch information
RuchirDixit authored Jul 25, 2023
1 parent 5e17251 commit 5c1b156
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/data/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@
"title": "fatal: remote origin already exists",
"description": "It happens when you attempt to change the repository origin URL after cloning it from GitHub or another remote repository to your local machine.",
"solutions": "['Update the existing remote URL, use the set-url command', 'rename the existing remote, run git rename with the remote']"
},
{
"type": "push",
"title": "Permission denied (Public Key) fatal: Could not read from remote repository",
"description": "This error typically occurs when you try to access a Git repository using the SSH protocol, but the authentication with your SSH key fails. This error is usually related to SSH key misconfiguration or access issues.",
"solutions": "1) Ensure your SSH key is set up correctly on your local machine. 2) Verify that the SSH agent is running and your key is added to it using ssh-add. 3) Check the remote URL for the Git repository; it should be in SSH format ([email protected]:username/repo.git). 4) Test the SSH connection to GitHub with ssh -T [email protected]. 5) Ensure there are no firewalls or proxies blocking SSH connections. 6) Optionally, you can use the HTTPS protocol if SSH continues to cause problems."
},
{
"type": "cmd",
Expand Down

0 comments on commit 5c1b156

Please sign in to comment.