LoginSignup
1
2

More than 1 year has passed since last update.

(git) 現在のブランチの取得方法

Last updated at Posted at 2021-08-21

(git) 現在のブランチの取得方法

Git 2.22 または以降

git branch --show-current

Git 2.22 以前

git rev-parse --abbrev-ref HEAD

または

git symbolic-ref --short HEAD

参考サイト

1
2
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
1
2