計算機科学のブログ

ほしい物リスト

Git - Branching Out: Multiple Trains of Thought - files, ls command

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

入出力結果(Terminal, Zsh)

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