Alias to open git conflicts in textmate

How would I go about creating a bash alias that pipes any conflicting files from a git merge or git rebase into TextMate’s mate command?

  • Is it possible to override git command by git alias?
  • How to open google chrome from terminal?
  • Git - How do I log the current branch name AND the last remote URL I pushed to into the console
  • How can I define an alias for a Git subcommand (e.g. for `list` in `git stash list`)?
  • Any reason to use a Git alias instead of a git-* script?
  • Git alias with variables not working as expected: pathspec did not match any file(s) known to git
  • Git on windows : weird character on first line for C# file
  • Collaborative programming with Git
  • Github asking for username and password/messed up installation
  • Installing git on shared hosting - ./configure: no such file or directory
  • git cvsimport fails: Could not merge master into the current branch
  • Gerrit - Gitlab Integration
  • One Solution collect form web for “Alias to open git conflicts in textmate”

    You can try

    textmate `git status | grep both | awk '{print $4}'`

    where textmate is your command to run TextMate.

    Git Baby is a git and github fan, let's start git clone.