Git push: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=


* [[Git#Commands|Git]]
* [[Git_Commands#Remote_Repository_Interaction|Git Commands]]


=Overview=
=Overview=


  git push [''repository-name''] [''refspec'']
  git push [''repository-name''] [''refspec'']
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>