« Git Commandes » : différence entre les versions

Ligne 126 : Ligne 126 :
<syntaxhighlight lang="bash" line copy>git push --set-upstream origin une_branche</syntaxhighlight>
<syntaxhighlight lang="bash" line copy>git push --set-upstream origin une_branche</syntaxhighlight>


=== '''Récupérer une branche qui n'existe pas en local'''
=== '''Récupérer une branche qui n'existe pas en local''' ===
<syntaxhighlight lang="bash" line copy>git checkout -b une_branche origin/une_branche</syntaxhighlight>
<syntaxhighlight lang="bash" line copy>git checkout -b une_branche origin/une_branche</syntaxhighlight>