Eli
Eli

Reputation: 39009

How Can I View All Files Changed on a Branch in Git

Is there a command for this? It seems like something really useful that should exist, but I haven't been able to find a command or switch for it despite my googling. Help?

Upvotes: 4

Views: 3930

Answers (2)

user2941229
user2941229

Reputation: 31

The below is based on Mike West's fshow. In your .gitconfig:

[alias]
  #show all files changed since branch inception
  ishow = ! bash -c 'git show --pretty="format:"  --name-only "$(git merge-base "$(git rev-parse --abbrev-ref HEAD)" master)..HEAD" | grep -v "^$" | sort | uniq' -

Upvotes: 3

dhwthompson
dhwthompson

Reputation: 2509

Mike West set up an alias called fshow to do exactly this: see his write-up for detailed instructions how to do it.

Upvotes: 4

Related Questions