Skip to content

Instantly share code, notes, and snippets.

@milenkovicm
Created April 17, 2012 08:20
Show Gist options
  • Select an option

  • Save milenkovicm/2404485 to your computer and use it in GitHub Desktop.

Select an option

Save milenkovicm/2404485 to your computer and use it in GitHub Desktop.
git commands and aliases

Simplest way to git a list of conflicted files

$git ls-files -u | cut -f 2 | sort -u
$git ls-files -u | awk '{print $4}' | sort | uniq

or just add an alias

$git config --global alias.conflicts "!git ls-files -u | cut -f 2 | sort -u"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment