User Tools

Site Tools


get:creating_and_switching_branches

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.txt · Last modified: 2015/11/07 00:39 by leo