Using GitX, how do I view the revision history for a single file? (using the command-line interface preferably)
E.g using GitK this is rather simple;
$ gitk app/models/activity.rb
Use something like @rgcb said but make sure you are at the top level of the repository.
gitx -- app/models/activity.rb
not
gitx -- ./activity.rb
Same way, but with
gitx
instead:Note that all the commits shown will include the specified file, but the full commit will be shown (i.e., it'll show changes for other files modified in that commit).