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?

Qiita100万記事感謝祭!記事投稿キャンペーン開催のお知らせ

ブランチを切り替えずに git rebase する

Posted at

今まで分岐元のブランチを最新にしたい際はわざわざ作業中のブランチから切り替えていた。

分岐元のブランチ = develop, 作業中のブランチを feature/XXX とすると下記のような形だ。

$ git checkout develop 
$ git pull
$ git checkout feature/XXX
$ git rebase develop

わざわざこんなことをしなくても

$ git pull --rebase origin/develop

とすることでブランチを切り替えずに最新の状態に rebase することができる

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?