User Tools

Site Tools


get:creating_and_switching_branches

This is an old revision of the document!


git checkout -b <new_branch_name> : créé une branche <new_branch_name>, + switch le working directory ( maintenant celui de la branche).

Équivaut à git branch <new_branch_name> + git checkout <new_branch_name>

On peut observer le changement de contexte avec git branch.

Afficher le log avec des infos et mise en forme, position des commits les uns par rappor aux autres :

git log –graph –oneline –decorate – all

Note :

checkout = en gros, mettre des choses dans le working directory, qu'il s'agisse de fichier ou de branche, commits, etc.

get/creating_and_switching_branches.1446758000.txt.gz · Last modified: 2015/11/05 22:13 by leo