Судя по опубликованному вами фрагменту, похоже, что файл .gitconfig
отсюда:
https://github.com/mathiasbynens/dotfiles/blob/master/.gitconfig
В той части файла, в которой вы обнаружили ошибку, отсутствуеткусок текста.Он должен был выглядеть так:
# Merge GitHub pull request on top of the current branch or,
# if a branch name is specified, on top of the specified branch
mpr = "!f() { \
declare currentBranch=\"$(git symbolic-ref --short HEAD)\"; \
declare branch=\"${2:-$currentBranch}\"; \
if [ $(printf \"%s\" \"$1\" | grep '^[0-9]\\+$' > /dev/null; printf $?) -eq 0 ]; then \
git fetch origin refs/pull/$1/head:pr/$1 && \
git checkout -B $branch && \
git rebase $branch pr/$1 && \
git checkout -B $branch && \
git merge pr/$1 && \
git branch -D pr/$1 && \
git commit --amend -m \"$(git log -1 --pretty=%B)\n\nCloses #$1.\"; \
fi \
}; f"
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
Если хотите, вы можете заменить свой .gitconfig
на оригинальный по ссылке, которую я разместил выше.Или, поскольку это выглядит так: Lasse Vågsæther Karlsen помогла вам заставить его работать, вы можете оставить его в покое.