計算機科学のブログ

ほしい物リスト

Git - Branching Out: Multiple Trains of Thought - branch, switch

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(157/715)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git branch
* master
% git branch my-new-branch
% git switch my-new-branch 
Switched to branch 'my-new-branch'
% git branch
  master
* my-new-branch
%