user2202911
user2202911

Reputation: 3014

Is there a way to output the result of a "git blame" to a text file?

I am running the git blame command on a large file and would like to see the results in a text file.

Upvotes: 5

Views: 4260

Answers (2)

Johnny Z
Johnny Z

Reputation: 15449

command line redirect which works for any command that prints to standard out:

git blame > output.txt

Upvotes: 3

Wayne
Wayne

Reputation: 60414

Sure. On the command line simply direct the output to your own file instead of STDOUT:

git blame source_file > blame_result_file

Upvotes: 7

Related Questions