版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wuxinke_blog/article/details/78858863
-
git push:fatal the current branch master has no upstream branch
-
解决方案:
gitpush -u origin master
功能结构图
- ssh: connect to host ldap.gauto.cc port 22: Connection refused,这个问题待解决
- 由 http协议转换为ssh协议操作:转换本地连接远程git的地址(注:这也是git clone http://xxx.com和git clone [email protected]的区别,使用本方法节省删除文件以及从新克隆的时间)
在你git clone项目后,只需将.git/config文件中
url = http://xxx.com/Name/project.git
改为
url = [email protected]/Name/project.git
即可。