Git push: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:


  git push origin <branch-name>
  git push origin <branch-name>
=Options=
==<tt>-n</tt>|<tt>--dry-run</tt>==
=Use Cases=
==Push a Branch as "Another" Branch on the Remote Repository==
<syntaxhighlight lang='bash'>
git push origin <source-branch>:<target-branch>
</syntaxhighlight>

Latest revision as of 16:55, 10 July 2021

Internal

Overview

git push [repository-name] [refspec]
git push origin <branch-name>

Options

-n|--dry-run

Use Cases

Push a Branch as "Another" Branch on the Remote Repository

git push origin <source-branch>:<target-branch>