<p>Hello,
i want to contribute to a golang project on github, so i forked it.</p>
<p>If it has owner's repo references like "johnsmith/foopack" that are inside the project, i have obviously change them to "myuser/foopack".</p>
<p>How do you handle this when you do a pull request? I don't want to change back every reference.</p>
<hr/>**评论:**<br/><br/>pdffs: <pre><p>Clone (or <code>go get</code>) the original repo, fork it, then add your remote to the repo:</p>
<pre><code>git remote add youruser https://github.com/youruser/originalrepo.git
</code></pre>
<p>Now you can push to your fork like:</p>
<pre><code>git push youruser branchname
</code></pre>
<p>And your local copy retains the original import path(s)</p></pre>SeerUD: <pre><p>Fork it, clone your fork to where the existing package naming would put it in your GOPATH. You don't have to change the package names.</p></pre>8lall0: <pre><p>That's a good idea, thank you.</p></pre>
