計算機科学のブログ

Git - Branching Out: Multiple Trains of Thought - subcommands, create new branch, switch, check

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 2.(Branching Out: Multiple Trains of Thought)、Code Magnets(30/164)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git branch 
* add-fall-menu
  master
  my-first-branch
% git branch my-new-branch
% git switch my-new-branch
Switched to branch 'my-new-branch'
% git branch
  add-fall-menu
  master
  my-first-branch
* my-new-branch
%