Command line ?!

Pour le push

 

– git add *
– git commit -m « la raison du commit »
– git push -u origin main

 

Changer de branche

 

– git checkout jc(pour être sur la branche jc)

 

Revenir sur la branche main

 

– git checkout main

 

Si je dev sur la branche jc et que je veux push sur main

 

– git add *
– git commit -m « la raison du commit »
– git checkout main
– git merge jc
– git push -u origin main

 

Créer un nouveau référentiel

 

– git init
– git add README.md
– git commit -m « first commit »
– git branch -M main
– git remote add origin https://github.com/……..i.git
– git push -u origin main

 

Ou pousser un référentiel existant depuis la ligne de commande

 

– git remote add origin https://github.com/………git
– git branch -M main
– git push -u origin main
0 0 votes
Évaluation de l'article
S’abonner
Notification pour
guest
0 Commentaires
Commentaires en ligne
Afficher tous les commentaires