Skip to content

Instantly share code, notes, and snippets.

@2get
Last active December 16, 2015 20:29
Show Gist options
  • Save 2get/5493318 to your computer and use it in GitHub Desktop.
Save 2get/5493318 to your computer and use it in GitHub Desktop.

Pull Request を出す前に最新の master の内容を作業ブランチに取り込む

merge ではなく rebase を使う

作業ブランチで git rebase master

CONFLICT が起きたら

修正して git add [file] した後 git rebase --continue

再度、CONFLICT する場合は上記を繰り返す

元の状態に戻したくなったら

rebase する前の状態に戻したい場合は git rebase --abort を使う

PUSH

rebase したら通常 push できないので force push する

git push -f origin [branch_name]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment