git切换仓库 小记

备忘小记

1、切换远程地址

git remote set-url origin git@e.coding.net:**/***/***.git

2、推送

git push -u origin master

fatal: sha1 file '<stdout>' write error: Broken pipe

据说是git缓存大小问题,设置:

git config --global http.postBuffer 157286400

参考:
https://zhuanlan.zhihu.com/p/40634410

问题解决后重新

git push -u origin master

原文地址:https://www.cnblogs.com/zhishuai/p/14206334.html