suse11sp2 git 切换分支失败问题

71 阅读1分钟

 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版本

mirrors.edge.kernel.org/pub/softwar…

./configure

make && make install