計算機科学のブログ

ほしい物リスト

Git - Looking Around: Investigating Your Git Repository - status, branch 1

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 5.(Looking Around: Investigating Your Git Repository)、SHARPEN YOUR PENCIL(680/680)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git status 
On branch spicy-version
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   saucy.md

Looking Around: Investigating Your Git Repository% git branch 
  different-base
  master
* spicy-version
Looking Around: Investigating Your Git Repository% git log --oneline --all --graph
* 8d670e9 (HEAD -> spicy-version) update recipe name
* 4cca5a7 make it spicy
| * 0065b8a (different-base) cut down salt
| * 549e0da use sour cream
|/  
* 5db2b68 (master) first attempt
Looking Around: Investigating Your Git Repository%