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 git log --all <filename> to view the commits influencing <filename> in all branches.
In the Change Explorer view, open a change set, right-click a file or folder in the change set, and select Show History.
The most basic and powerful tool to do this is the git log command. By default, with no arguments, git log lists the commits made in that repository in reverse chronological order; that is, the most recent commits show up first.
After you have created several commits, or if you have cloned a repository with an existing commit history, you'll probably want to look back to see what has happened. The most basic and powerful tool to do this is the git log command.
try
gitx -- app/models/activity.rb
make sure you run the command at the repository root otherwise gitx will appear empty
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With