git log
You can view the versioning history of the current file or project directory or local repository.
- To view the versioning history of the current file, go to Tools > Git > Current File and select Log of <file>.
- To view the versioning history of a selection of the current file, go to Tools > Git > Current File and select Log of <file> Selection.
- To view the versioning history of the current project directory, go to Tools > Git > Current Project Directory and select Log of <project directory name>.
- To view the versioning history of the local repository, go to Tools > Git > Local Repository and select Log.
- To view the log of a directory and its subdirectories, right-click it in Projects.
The Git Log view shows the commit identifier, author, date, and commit message.
To set the maximum number of log entries to show, go to Preferences > Version Control > Git > Log count.
Select (Reload) to rescan the files.
View log entry details
In the Git Log view, select a commit identifier to view commit details.
Right-click a commit identifier to apply actions to the commit, such as cherry-pick, checkout, or revert it.
Toggle the diff view
To toggle the diff view, select Diff.
Use the patience diff algorithm
To use the patience diff algorithm for calculating the differences, select Patience.
Ignore whitespace changes
To only show text changes, select Ignore Whitespace.
Filter log entries
To filter log entries by the text in the commit message, by strings that were added or removed, or by author:
- In the Git Log view, select Filter.
- Enter a search string in Filter by message, Filter by content, or Filter by author.
- Select Case Sensitive to make filtering consider case.
Show log for all local branches
To show the log for all local branches (for example, to see all commits that touch a file), select All.
Follow only the first parent
To follow only the first parent on merge commits, select First Parent.
Toggle text and graph
To toggle between textual and visual representation of the log, select Graph.
Toggle colors
To toggle color coding of different parts of the log entries, select Color.
Show log for previous names of the file
To show log also for previous names of the file, select Follow.
Show details
To display a description of the change including the diff in the Git Show view, select Describe Change in the context menu.
See also How To: Use Git and Git.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.