拉取分支代码 git clone -b 分支名“url” 切换到主分支 在左下角,git中,找到主分支master 右键 checkout即可 idea中提交git服务器 三部曲: 1,现commit一下 2, 再拉取一下 服务器上的代码,因为可能有伙伴也提交过了修改 3, push