![git Branch 명령이 작동하지 않지만 다른 명령은 작동합니다](https://rvso.com/image/1595512/git%20Branch%20%EB%AA%85%EB%A0%B9%EC%9D%B4%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%A7%80%EB%A7%8C%20%EB%8B%A4%EB%A5%B8%20%EB%AA%85%EB%A0%B9%EC%9D%80%20%EC%9E%91%EB%8F%99%ED%95%A9%EB%8B%88%EB%8B%A4.png)
Git 설치 시 이상한 동작이 발생합니다. 일반적인 Git 명령은 , , , , 와 같이 정상적으로 작동 init
하지만 , , add
, 와 관련된 명령을 입력하면 다음과 같이 보고됩니다.commit
push
pull
branch
C:\Program Files\Deltares\Delft3D 4.03.01\win64\util\bin\more.exe: C:Program: command not found
$ git branch
C:\Program Files\Deltares\Delft3D 4.03.01\win64\util\bin\more.exe: C:Program: command not found
내 설정에 대한 일부 정보:
기본 설치
오류에 따르면 내 Delft3D 및 more.exe와 관련된 내용이 있지만 시스템 변수에서 아무 구석이나 찾으려고 시도하고 Delft3D가 포함된 항목을 모두 삭제했습니다. 하지만 여전히 작동하지 않습니다.
몇 가지 유용한 정보:
$ set |grep -F GIT
GIT_EXEC_PATH='C:/Program Files/Git/mingw64/libexec/git-core'
PWD=/d/Workspace/GITtest
if [ -n "${GIT_DIR-}" ]; then
test -d "${GIT_DIR-}" && __git_repo_path="$GIT_DIR";
if test -n "$GIT_TESTING_PORCELAIN_COMMAND_LIST"; then
__gitcomp "$GIT_TESTING_PORCELAIN_COMMAND_LIST";
if [ "true" = "$inside_worktree" ] && [ -n "${GIT_PS1_HIDE_IF_PWD_IGNORED-}" ] && [ "$(git config --bool bash.hideIfPwdIgnored)" != "false" ] && git check-ignore -q .; then
case "${GIT_PS1_DESCRIBE_STYLE-}" in
b="GIT_DIR!";
if [ -n "${GIT_PS1_SHOWDIRTYSTATE-}" ] && [ "$(git config --bool bash.showDirtyState)" != "false" ]; then
if [ -n "${GIT_PS1_SHOWSTASHSTATE-}" ] && git rev-parse --verify --quiet refs/stash > /dev/null; then
if [ -n "${GIT_PS1_SHOWUNTRACKEDFILES-}" ] && [ "$(git config --bool bash.showUntrackedFiles)" != "false" ] && git ls-files --others --exclude-standard --directory --no-empty-directory --error-unmatch -- ':/*' > /dev/null 2> /dev/null; then
if [ -n "${GIT_PS1_SHOWUPSTREAM-}" ]; then
local z="${GIT_PS1_STATESEPARATOR-" "}";
if [ $pcmode = yes ] && [ -n "${GIT_PS1_SHOWCOLORHINTS-}" ]; then
GIT_PS1_SHOWUPSTREAM="$value";
if [[ -z "${GIT_PS1_SHOWUPSTREAM}" ]]; then
for option in ${GIT_PS1_SHOWUPSTREAM};
upstream=${GIT_SVN_ID:-git-svn};
if [ "$GIT_COMPLETION_CHECKOUT_NO_GUESS" = "1" ] || [ -n "$(__git_find_on_cmdline "$flags")" ]; then
if test -n "$GIT_TESTING_ALL_COMMAND_LIST"; then
__gitcomp "$GIT_TESTING_ALL_COMMAND_LIST $(__git --list-cmds=alias,list-guide) gitk";
$ cat ~/.gitconfig
[user]
name = QB-LAPTOP
email = [email protected]
[gui]
recentrepo = D:/New
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
$ command -V git
git is hashed (/mingw64/bin/git)
$ git --version
git version 2.22.0.windows.1