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?

  • How can I delete a git alias?
  • Git alias to squash all commits with a particular commit message
  • Git Log Alias not working
  • One GIT command to rule them all (gacp: git-add-commit-push)
  • use git shell alias in git command
  • `find -exec` in git alias
  • How to automatically add default reviewers in gerrit when change owner adds +1?
  • How to get Heroku to detect GO buildpack
  • How to properly organize repository with big files which are rarely or never changed?
  • What is the purpose of Perforce file “.perforce”?
  • In Mercurial, when Peter “hg clone” me, and I commit and he pull and update, he gets my version, but not when I rollback?
  • How can I get git to follow symlinks?
  • 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.