push代码时,Git提示远程终端意外挂起

push代码时,提示:The remote end hung up unexpectedly The remote end hung up unexpectedly RPC failed; result=22, HTTP code = 404

解决方法:
1.打开项目代码的git bash,输入一下命令:
1)git  remote  rename  origin  old-origin
2)git  remote  add  origin 项目地址
2.重新在origin远程push代码即可。

猜你喜欢

转载自blog.51cto.com/13678728/2477179