<div dir="ltr"><div>Hi Nick</div><div><br></div><div>If you are to manually manipulate the remote settings, you can go one step further to shorten the command to `git push gerrit` (and `git push draft` to upload a draft patchset).</div><div>This trick is covered in my blog post <a href="https://yoursunny.com/t/2017/NFD-devbox/">https://yoursunny.com/t/2017/NFD-devbox/</a> under "uploading to Gerrit" section.</div><div><br></div><div>Yours, Junxiao<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 10, 2017 at 1:30 PM, Nick Gordon <span dir="ltr"><<a href="mailto:nmgordon@memphis.edu">nmgordon@memphis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>He hasn't set gerrit as a remote to his git repo. Generally
      speaking, the command is:<br>
    </p>
    <p><tt>git remote add gerrit
        <a class="gmail-m_3617386851461254357moz-txt-link-abbreviated" href="mailto:ssh://username@git.example.com:1234/project" target="_blank">ssh://username@git.example.<wbr>com:1234/project</a></tt></p>
    <p>In particular, if you want to contribute to NFD as nmgordon, to
      the <a href="http://named-data.net" target="_blank">named-data.net</a> gerrit instance, which is hosted on port 29418,
      the command is:</p>
    <p><tt>git remote add gerrit
        <a class="gmail-m_3617386851461254357moz-txt-link-abbreviated" href="mailto:ssh://nmgordon@gerrit.named-data.net:29418/NFD" target="_blank">ssh://nmgordon@gerrit.named-<wbr>data.net:29418/NFD</a></tt></p>
    <p>Then, you can use:</p>
    <p><tt>git push gerrit HEAD:refs/for/master</tt></p>
    <p>I can update the documentation to include a clarifying note.<span class="gmail-HOEnZb"><font color="#888888"><tt><br>
      </tt></font></span></p><span class="gmail-HOEnZb"><font color="#888888">
    <p>-Nick</p></font></span><blockquote type="cite"><span>
    </span><br></blockquote></div></blockquote></div></div></div>