0
0

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 3 years have passed since last update.

【初心者】ローカルのブランチを最新に更新して反映するまで【初心者】

Posted at

ローカルとリモート(origin)にmainの情報がある
#ローカルのmasterを最新に更新する方法

以下の2つのステップを踏む必要がある。
1,更新
2,反映

それを一括でやるやり方がこれ

上の二つのコマンドを一発でやってくれるのが以下

$ git pull origin main

##丁寧なやり方

$ git fetch -p

##そのローカルのmaster情報を最新に更新したものをローカルのmasterに反映
参考

$ git merge origin/main
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?