LoginSignup
2
1

More than 3 years have passed since last update.

git branch関連コマンド

Posted at

ブランチの確認

ローカルブランチの確認
# git branch

リモートブランチの確認
# git branch -r

派生ブランチの作成

# git branch BRANCH_NAME

作業ブランチの変更

# git checkout BRANCH_NAME

マージ

# git merge BRANCH_NAME

ブランチの削除

# git branch -d BRANCH_NAME

リモートブランチの削除
# git branch origin :BRANCH_NAME

リモートリポジトリでは削除されていてローカルリポジトリに残っているリモートブランチの削除
# git remote prune --dry-run origin
2
1
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
2
1