4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Git】作業用ブランチを最新化する

Posted at

毎回調べるのが面倒なのでメモ。

ブランチ

作業用ブランチをtestブランチとする。
デフォルトブランチをmasterブランチとする。

PS C:\■■■■■■■■> git branch
* test
  master

masterブランチを最新化

masterブランチに移動

git checkout master

masterブランチを最新化

git pull

作業用ブランチを最新化

作業用ブランチに移動

git checkout test

masterブランチの内容を作業用ブランチにマージ

git merge master
4
5
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
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?