LoginSignup
1
0

More than 5 years have passed since last update.

Git基礎 ブランチ・マージ基本コマンド

Posted at

ブランチを作成

  • git branch <ブランチ名>

ブランチ一覧表示

  • git branch
  • git branch -a  ← 全てのブランチを表示する   

ブランチの切り替え

  • git checkout <既存ブランチ名>
  • git checkout -b <新ブランチ名>  ← 新規作成して切り替える

ブランチ名の変更

  • git branch -m <ブランチ名>

ブランチを削除

  • git branch -d <ブランチ名>
  • git branch -D <ブランチ名>  ←  強制削除

マージとは

  • マージとは他の人の変更を取り組む作業
  • git merge <ブランチ名>
1
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
1
0