<p>就拿我的需求来说:<br>个人项目在公司电脑上,现在我想在自己的电脑上进行开发。<br>而且采用远程也是一种方式,但是存在资源浪费和开发环境不稳定的因素。<br>有没有简单粗暴的方法?<br>经过一番折腾,我终于找到了“单人不同设备开发同一github开源项目”的方法,分享给大家。<br>1.github创建分支,new 一个 branch<br>2.克隆分支项目,git clone -b branchname 远程地址<br>3.git config --global user.name "John Doe"<br>4.git config --global user.email [email protected]<br>5.git add .<br>6.git commit -m "test"<br>7.git pull <br>8.git push -u origin branchname<br>说明:由于是相同账号,因此不需要在github上进行pull request再merge,github自动merge</p>