解决Traceback (most recent call last): File “e:\python\lib\runpy.py“, line 197, in _run_module_as_ma

Traceback (most recent call last):
File “e:\python\lib\runpy.py”, line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File “e:\python\lib\runpy.py”, line 87, in _run_code
File “e:\python\lib\site-packages\git_review\cmd.py”, line 1722, in _main
check_remote(branch, remote, config[‘scheme’],
has_color = check_color_support()
ort
(status, output) = run_command_status(test_command)
File “e:\python\lib\site-packages\git_review\cmd.py”, line 156, in run_cous
(out, nothing) = p.communicate(stdin)
File “e:\python\lib\subprocess.py”, line 1117, in communicate
stdout = self.stdout.read()
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xaf in position 16: illeyte sequence
PS E:\2022\work\tfcloud\www> git review
You have unstaged changes. Please commit or stash them first, and then
try again.

解决方法:
步骤一:
在subprocess.py文件里面加一个encodeing=‘utf-8’
步骤二:
在这里插入图片描述

持续有冲突的情况下,删除项目根目录下的.git文件夹中的rebase-merge

方法一是参见链接https://blog.csdn.net/myli_binbin/article/details/108152690
方法简洁明了且有效!!!

  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值