error: pathspec 'xxx did not match any file(s) known to git
原装的系统,zypper install git-core后,无法切换分支,也不能设置用户名。
git config user.name查看始终为空。
原装的git版本为1.6
卸载原装的
zypper remove git-core
zypper remove git
需要更换到2.11.1版本
https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.11.1.tar.gz
./configure
make && make install