Gitのエラー一覧と解決方法(20件)
実在のGitエラーメッセージを収録。各ページで原因と直し方を日本語で解説しています。
- fatal: not a git repository (or any of the parent directories): .git
- error: failed to push some refs to
- fatal: refusing to merge unrelated histories
- Please commit your changes or stash them before you merge.
- fatal: remote origin already exists.
- error: pathspec 'branch' did not match any file(s) known to git
- fatal: The current branch has no upstream branch.
- CONFLICT (content): Merge conflict in
- fatal: Authentication failed for
- fatal: unable to access ... SSL certificate problem: unable to get local issuer certificat
- error: Your local changes to the following files would be overwritten by checkout
- fatal: could not read Username for 'https://github.com': terminal prompts disabled
- error: src refspec main does not match any
- Updates were rejected because the tip of your current branch is behind
- fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
- warning: LF will be replaced by CRLF the next time Git touches it
- git: 'xyz' is not a git command. See 'git --help'.
- fatal: detected dubious ownership in repository at
- You are in 'detached HEAD' state.
- fatal: bad object
エラー文を貼って探すならエラーメッセージ検索ツールが便利です。