Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # コンフリクトしたときの --theirs と --ours
- よく忘れるやつ
- ## merge
- ```sh
- $ git checkout branch_b
- $ git merge branch_a
- # branch_a の内容を一方的に取り込みたい
- $ git checkout --theirs [file]
- # branch_b の内容を一方的に取り込みたい
- $ git checkout --ours [file]
- ```
- ## rebase
- ```sh
- $ git checkout branch_b
- $ git rebase branch_a
- # branch_a の内容を一方的に取り込みたい
- $ git checkout --ours [file]
- # branch_b の内容を一方的に取り込みたい
- $ git checkout --theirs [file]
- ```
Add Comment
Please, Sign In to add comment