39
42

More than 3 years have passed since last update.

pull のときは常に rebase する

Last updated at Posted at 2012-12-26

git pull のときいちいち git pull –rebase ってするのが面倒なので

# master 上で git pull するときは常に rebase
git config branch.master.rebase true

# 全ブランチで rebase を使う
git config --global branch.autosetuprebase always

# 全ブランチで rebase を使う(1.7.9以降)
git config --global pull.rebase true

# 全ブランチで rebase を使う(1.8.5以降)
git config --global pull.rebase preserve

# 全ブランチで rebase を使う(2.22以降)
git config --global pull.rebase merges
39
42
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
39
42