1、创建了本地git仓库: 右键项目——Team——share ——Create Repository——finish 2、将项目提交到本地仓库然后提交到远程git仓库 右键项目——Team——commit and push 3、填写git的https地址和账户 4、Source ref和Destination ref选择refs/heads/master——Add Spec——勾选force update,不然提交空内容 Done 转载于:https://www.cnblogs.com/xingyyy/p/4242732.html