Bei meiner Git-Installation tritt ein merkwürdiges Verhalten auf. Die üblichen Git-Befehle funktionieren normal: init
, add
, commit
, push
, pull
, aber wenn ich einen Befehl im Zusammenhang mit eingebe branch
, wird Folgendes gemeldet:
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
Einige Informationen zu meinem Setup:
Standardinstallation
Laut dem Fehler hat es etwas mit meinem Delft3D und more.exe zu tun, aber ich habe versucht, in meinen Systemvariablen nach einer Ecke zu suchen und alle Elemente zu löschen, die Delft3D enthielten. Aber es funktioniert immer noch nicht.
Einige nützliche Informationen:
$ 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