Git push: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
=Options= | =Options= | ||
==<tt>-n</tt>|<tt>--dry-run</tt>== | |||
==-n|--dry-run== | =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>