环境:阿里云ECS Centos7
在hyperledger-fabricdocs Documentation, Release master 的Upgrading Your Network Components 中
执行命令:git checkout v1.0.6 命令,出现下面错误:
[root@ct first-network]# git checkout v1.0.6
error: Your local changes to the following files would be overwritten by checkout:
first-network/base/docker-compose-base.yamlfirst-network/base/peer-base.yaml
first-network/docker-compose-cli.yaml
Please, commit your changes or stash them before you can switch branches. Aborting
解决办法:
配置用户名和邮箱:
git config --global user.name "youname"
git config --global user.email "youeamil@email.com"
保留当前服务器上的改动:
git stash
如果出现:
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f62a2299259]
查看:https://blog.youkuaiyun.com/linkvivi/article/details/79958555