Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitX - How do you view a single file's commit history?

Tags:

git

gitx

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
like image 719
GlennR Avatar asked Jul 21 '10 09:07

GlennR


People also ask

How can you view all the commits for a single file?

Use git log --all <filename> to view the commits influencing <filename> in all branches.

How do I view file change history?

In the Change Explorer view, open a change set, right-click a file or folder in the change set, and select Show History.

Which command would you use to view the history of commits?

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.

How do you view the commit history of a cloned repository?

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.


1 Answers

try

gitx -- app/models/activity.rb

make sure you run the command at the repository root otherwise gitx will appear empty

like image 164
rgcb Avatar answered Oct 01 '22 02:10

rgcb