git fetch, pull, push 에러
인텔리제이에서 git (bitbucket으로 버전관리) 의 소스를 동기화 하거나, 소스를 병합할 때 마다 간헐적(?)으로 성공하거나 실패했습니다.
아래 다양한 git 에러 로그와 비슷한 상황이라면 맨 아래의 해결 과정을 따라해보시는 걸 추천드립니다.
git 명령어별 에러 로그
git fetch
error launching git: .
git: 'C:\Program Files\Git\cmd\git.exe' is not a git command. See 'git --help'.
git credential-manager get: line 1: /mingw64/libexec/git-core/git: Permission denied
git credential-store get: line 1: /mingw64/libexec/git-core/git: Permission denied
warning: failed to restrict file handles (5)
handle #0: 0000000000000264 (type 3, handle info (1) 0
handle #1: 00000000000002e8 (type 3, handle info (1) 1
handle #2: 0000000000002540 (type 3, handle info (1) 1
This is a bug; please report it at
https://github.com/git-for-windows/git/issues/new
To suppress this warning, please set the environment variable
SUPPRESS_HANDLE_INHERITANCE_WARNING=1
git credential-manager get: line 1: /mingw64/libexec/git-core/git: Permission denied
error: cannot spawn sh: Permission denied
git pull
Update supportbatch failed with an error: Failed to start Git process: Cannot run program "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.3.2\bin\runnerw.exe" CreateProcess error=5, 액세스가 거부되었습니다
git credential-store get: line 1: /mingw64/libexec/git-core/git: Permission denied
0 [main] sh 283 dofork: child -1 - CreateProcessW failed for 'C:\Program Files\Git\usr\bin\sh.exe', errno 13
intellij-git-askpass-local.sh: fork: Permission denied
error: unable to read askpass response from 'intellij-git-askpass-local.sh'
bash: line 1: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://bitbucket.sinc.co.kr': No such file or directory
git push
To suppress this warning, please set the environment variable
SUPPRESS_HANDLE_INHERITANCE_WARNING=1
ó������ ���� ����: System.ComponentModel.Win32Exception: ������ �źεǾ����ϴ�
��ġ: System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
��ġ: System.Diagnostics.Process.Start()
��ġ: GitCredentialManager.ChildProcess.Start(Trace2ProcessClass processClass)
��ġ: GitCredentialManager.GitProcessConfiguration.Enumerate(GitConfigurationLevel level, GitConfigurationEnumerationCallback cb)
��ġ: GitCredentialManager.GitConfigurationExtensions.Enumerate(IGitConfiguration config, GitConfigurationEnumerationCallback cb)
��ġ: GitCredentialManager.Settings.<GetSettingValues>d__6.MoveNext()
��ġ: System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
��ġ: GitCredentialManager.Settings.TryGetSetting(String envarName, String section, String property, String& value)
��ġ: GitCredentialManager.Settings.GetTrace2Settings()
��ġ: GitCredentialManager.Trace2.Initialize(DateTimeOffset startTime)
��ġ: GitCredentialManager.Program.AppMain(Object o)
��ġ: System.Threading.ThreadHelper.ThreadStart_Context(Object state)
��ġ: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
��ġ: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
��ġ: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
��ġ: System.Threading.ThreadHelper.ThreadStart(Object obj)
해결 과정
1. Use credential helper 활성화
intellij setting -> version Control -> git -> Use credential helper 활성화

인텔리제이 관련 사이트에서 추천해준 방법이었지만,
저에게는 효과가 없었습니다.
unable to read askpass response - intellij-git-askpass-local.sh : IJPL-73023
I run the IDEA from WSL2 and getting the error below on pulling updates from git repo. unable to read askpass response from '/home/ilhami/.cache/JetBrains/IntelliJIdea2023.2/tmp/intellij-git-askpass-local.sh' could not read Username for '[https://](https:/
youtrack.jetbrains.com
2. Intellij 캐시 삭제
intellij file -> Invalidate caches -> clear file system cache and local history 선택 -> Invalidate and Restart 클릭

이 또한, 인텔리제이 관련 사이트에서 추천해준 방법이었지만,
저에게는 효과가 없었습니다.
3. Intellij, Git 연동 확인
intellij setting -> version Control -> git -> Path to Git executable [Test 클릭]

Failed to start Git process: Cannot run program "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.3.2\bin\runnerw.exe"
(in directory "."): CreateProcess error=5, 액세스가 거부되었습니다
Intellij 에서 git이 연동되어 있는지 확인하는 방법입니다.
git 과 연동 중 문제가 발생했다고 판단했습니다.
4. Git 재설치
git 삭제 -> 재시작 -> intellij 실행 -> git 설치가 필요하다는 알림창 클릭 후 git 설치
이후 에러 로그가 출력되지 않았습니다.