1. 首先切换到项目根目录下 执行 git init 2. 点击项目右键->Git->Repository->Remotes->编辑URL 到github代码地址。 转载于:https://www.cnblogs.com/mengjianzhou/p/9118422.html