0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【git-spice】logコマンドですべてのブランチを表示する方法

Posted at

すべてのブランチを表示する方法

-aを使用するとすべてのブランチを表示できます。
使用しない場合には現在のスタックのブランチのみ表示されます。

gs log short -a
# または
gs log short --all

# 長い形式の場合
gs log long -a
# または
gs log long --all

logコマンドの種類

git-spiceには2種類のlogコマンドがあります。

  • gs log short (gs ls): ブランチのリストを表示
  • gs log long (gs ll): ブランチとコミットの両方を表示

設定ファイルでデフォルト動作を変更

毎回--allフラグを付けたくない場合は、設定ファイルで変更できます。

git config spice.log.all true

この設定により、gs logコマンドがデフォルトですべてのブランチを表示するようになります。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?