El comando git branch no funciona, pero otros comandos sí

El comando git branch no funciona, pero otros comandos sí

Tengo un comportamiento extraño con mi instalación de Git. Los comandos habituales de Git funcionan normalmente: init, add, commit, push, pullpero cuando escribo cualquier comando relacionado con branch, informa:

C:\Program Files\Deltares\Delft3D 4.03.01\win64\util\bin\more.exe: C:Program: command not found

imagen de error

$ git branch
C:\Program Files\Deltares\Delft3D 4.03.01\win64\util\bin\more.exe: C:Program: command not found

Alguna información sobre mi configuración:

  • Instalación por defecto

  • Según el error, tiene algo relacionado con mi Delft3D y more.exe, pero intenté buscar cualquier rincón en las variables de mi sistema y eliminé cualquier elemento que tuviera Delft3D. Pero aún así, no funciona.

Alguna información útil:

$ 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

información relacionada