(created/git2cpp/push.md)=
# git2cpp push

```{parsed-literal}
Update remote refs along with associated objects


git2cpp push [OPTIONS] [&lt;remote&gt;] [&lt;refspec&gt;...]


POSITIONALS:
&nbsp; &lt;remote&gt; TEXT [origin]      The remote to push to
&nbsp; &lt;refspec&gt; TEXT ...          The refspec(s) to push

OPTIONS:
&nbsp; -h,     --help              Print this help message and exit
&nbsp;         --all, --branches   Push all branches (i.e. refs under <span class=git2cpp-bold>refs/heads/</span>); cannot
&nbsp;                             be used with other &lt;refspec&gt;.
```
