LoginSignup
1
0

git コマンドでブランチを変更したりマージする方法

Posted at

▼現在のブランチの状態(一覧)を確認する方法

git branch

▼ブランチの作成

git branch ブランチ名

▼ブランチを切り替える方法

git checkout ブランチ名

▼ブランチの削除

git branch -d

▼現在のブランチ名の変更

git branch -m 新しいブランチ名

▼現在いる場所でないブランチ名の変更

git branch -m 古いブランチ名 新しいブランチ名

▼現在のブランチに、指定したブランチの状態を上書きする

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