結論
git checkout -
で一つ前に操作したブランチに戻れて便利!
(知らなかった...)
# 最初にいたブランチ ~/w/taskleaf (master|✔) $ # 移動する ~/w/taskleaf (master|✔) $ git checkout add_csv_download_function Switched to branch 'add_csv_download_function' # 移動先のブランチで実行すると... ~/w/taskleaf (add_csv_download_function|✔) $ git checkout - Switched to branch 'master' # 最初にいたブランチに戻る! ~/w/taskleaf (master|✔) $