Skip to content

Commit

Permalink
new branch related error added
Browse files Browse the repository at this point in the history
  • Loading branch information
devvsakib committed Jul 28, 2024
1 parent 9b7882d commit 0df9611
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions src/data/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"description": "error: failed to push some refs to 'github.com:user/repo.git'",
"solutions": "rm -rf .git<git init<git add .<git commit -m \"ges\"<git branch -M main<git remote add origin YOUR_GITHUB_REPO_LINK<git push -u origin main -f"
},

{
"type": "merge",
"title": "fatal: refusing to merge unrelated histories",
Expand All @@ -25,7 +24,7 @@
"description": "Unable to add file. While adding file, it shows fatal: not a valid object name: 'master'.",
"solutions": "git commit -m \"first commit\""
},
{
{
"type": "add",
"title": "Another git process seems to be running in this repository",
"description": "Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.",
Expand All @@ -43,13 +42,19 @@
"description": "Can't switch/checkout to the BRANCH, bcz this branch is not exits man!",
"solutions": "This branch is not there, you have to create this branch. < git branch BRANCHNAME -m"
},
{
"type": "branch",
"title": "error: bad signature 0x00000000",
"description": "Can't switch/checkout to the BRANCH, fatal: index file corrupt!",
"solutions": "rm .git/index < git reset"
},
{
"type": "add",
"title": "error: Your local changes to the following files would be overwritten by checkout: <file name>",
"description": "Please commit your changes or stash them before you stwitch branches. Aborting",
"solutions": "rm -f .git/index.lock"
},
{
{
"type": "commit",
"title": "error: Your local changes to the following files would be overwritten by checkout: <file name>",
"description": "Please commit your changes or stash them before you stwitch branches. Aborting",
Expand All @@ -61,7 +66,7 @@
"description": "fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.",
"solutions": "git pull origin BRANCHNAME"
},
{
{
"type": "pull",
"title": "fatal: refusing to merge unrelated histories",
"description": "The refusing to merge unrelated histories error typically occurs when Git detects that the branches you are trying to merge have divergent commit histories and are essentially unrelated.",
Expand Down Expand Up @@ -98,17 +103,17 @@
"solutions": "git pull"
},
{
"type": "branch",
"title": "Delete Local branch",
"description": "You can easily delete a local branch. If the branch has not been merged, use git branch -d <branchname> instead.",
"solutions": "git branch --delete [branchname]"
},
{
"type": "pull",
"title": "Pulling issue",
"description": "error: bad signature 0x00000000, fatal: index file corrupt. NB: use git bash for this command. if you use cmd then use del instead of rm.",
"solutions": "rm -f .git/index<git reset"
},
"type": "branch",
"title": "Delete Local branch",
"description": "You can easily delete a local branch. If the branch has not been merged, use git branch -d <branchname> instead.",
"solutions": "git branch --delete [branchname]"
},
{
"type": "pull",
"title": "Pulling issue",
"description": "error: bad signature 0x00000000, fatal: index file corrupt. NB: use git bash for this command. if you use cmd then use del instead of rm.",
"solutions": "rm -f .git/index<git reset"
},
{
"type": "push",
"title": "remote: Not Found",
Expand Down Expand Up @@ -308,12 +313,12 @@
"solutions": "git status"
},
{
"type":"cmd",
"title":"error: RPC failed; curl transfer closed with outstanding read data remaining",
"description":"typically occurs when Git is unable to complete a network request, often due to a slow or unstable connection or Small HTTPS Buffer on Client machine",
"solutions":" increasing the Git buffer size and using a different network connection are two possible solutions that may help resolve the issue < git config http.postBuffer 524288000 < git config --global http.maxRequestBuffer 524288000 < git config --global core.compression 0"
"type": "cmd",
"title": "error: RPC failed; curl transfer closed with outstanding read data remaining",
"description": "typically occurs when Git is unable to complete a network request, often due to a slow or unstable connection or Small HTTPS Buffer on Client machine",
"solutions": " increasing the Git buffer size and using a different network connection are two possible solutions that may help resolve the issue < git config http.postBuffer 524288000 < git config --global http.maxRequestBuffer 524288000 < git config --global core.compression 0"
},
{
{
"type": "commit",
"title": "Git nothing to commit",
"description": "The Git command line informs us that our local repository contains one more commit than our remote repository.",
Expand Down

0 comments on commit 0df9611

Please sign in to comment.