From 5c1b1564615450e23976826412f6d079d97563dd Mon Sep 17 00:00:00 2001 From: Ruchir Dixit Date: Tue, 25 Jul 2023 23:59:58 +0530 Subject: [PATCH] Update error.json Added new error, description and its solution in errors list. Related to Issue ID #172 --- src/data/error.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/data/error.json b/src/data/error.json index 185b5d0..81ffd56 100644 --- a/src/data/error.json +++ b/src/data/error.json @@ -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 (git@github.com:username/repo.git). 4) Test the SSH connection to GitHub with ssh -T git@github.com. 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",