Linux command
gitk 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start gitk
gitk
Show all branches
gitk --all
Show specific file history
gitk [file.txt]
Show specific range
gitk [v1.0..v2.0]
Show since date
gitk --since="[2 weeks ago]"
说明
gitk is a graphical repository browser for Git. It displays commit history in a visual graph, showing branches, merges, and commit details in a GUI window. The interface shows the commit graph, file changes, and diff content. It supports search, filtering, and visual exploration of repository history.
参数
- --all
- Show all branches.
- --since _DATE_
- Show commits since date.
- --until _DATE_
- Show commits until date.
- --help
- Display help information.
FAQ
What is the gitk command used for?
gitk is a graphical repository browser for Git. It displays commit history in a visual graph, showing branches, merges, and commit details in a GUI window. The interface shows the commit graph, file changes, and diff content. It supports search, filtering, and visual exploration of repository history.
How do I run a basic gitk example?
Run `gitk` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --all do in gitk?
Show all branches.