Matt
Matt

Reputation: 2170

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?

Upvotes: 3

Views: 859

Answers (1)

Paweł Łoziński
Paweł Łoziński

Reputation: 1094

You can try

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

where textmate is your command to run TextMate.

Upvotes: 3

Related Questions