計算機科学のブログ

ほしい物リスト

Git - Branching Out: Multiple Trains of Thought - 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)、BE Git(161/715)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git branch
* add-fall-menu
  master
% ls
README.md	menu.md
% git switch master 
Switched to branch 'master'
% ls
README.md
% git branch 
  add-fall-menu
* master
%