赞
踩
先查看一下配置是否正确
git config --list
备注:remote.origin.url建议使用http开头,非git@开头,因为有些公司不开放gitlab对应的22端口,或该端口上传会不稳定
修改remote.origin.url
git remote set-url origin http://git.###.com/###-front-xxx.git
git push --set-upstream origin master
查询远程分支版本及链接
git remote -v
查看所有分支名称
(env_###_app_lab) lixuefu2@ubuntu:/mnt/hgfs/share/django/###-app-lab$ git branch -a
* master
remotes/origin/master
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。