Guest User

Untitled

a guest
Jun 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/bash
  2. buscaConflictos() {
  3. git checkout -b mergin-sarasabasa > /dev/null 2>&1
  4. git rev-list --all --merges --parents --reverse |
  5. while IFS= read -r line
  6. do
  7. hashes=($line)
  8. base=${hashes[1]}
  9. others=${hashes[@]:2}
  10. git reset --hard "$base" > /dev/null
  11. git merge --no-commit --no-ff "$others" >/dev/null 2>&1 || echo $line
  12. git merge --abort > /dev/null
  13. done
  14. }
Add Comment
Please, Sign In to add comment