Linux command
grv 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open the current repository
grv
Open a specific repository
grv -repoFilePath [path/to/repo]
Open with a specific log level
grv -logLevel [NONE|PANIC|FATAL|ERROR|WARN|INFO|DEBUG|TRACE]
Open in read-only mode
grv -readOnly
说明
GRV (Git Repository Viewer) is a terminal-based interface for viewing Git repositories. It allows refs, commits, and diffs to be viewed, searched, and filtered using Vi/Vim-like key bindings. The interface provides multiple views including a ref view for branches and tags, a commit view for browsing history, and a diff view for inspecting changes. GRV reads the repository directly using libgit2 rather than shelling out to git commands, resulting in fast navigation even in large repositories. The behaviour and style can be customised through a .grvrc configuration file.
参数
- -repoFilePath _path_
- Repository file path (default: ".")
- -workTreeFilePath _path_
- Work tree file path
- -logFile _path_
- Log file path (default: "grv.log")
- -logLevel _level_
- Logging level: NONE, PANIC, FATAL, ERROR, WARN, INFO, DEBUG, TRACE (default: "NONE")
- -readOnly
- Run grv in read-only mode
- -version
- Print version information
FAQ
What is the grv command used for?
GRV (Git Repository Viewer) is a terminal-based interface for viewing Git repositories. It allows refs, commits, and diffs to be viewed, searched, and filtered using Vi/Vim-like key bindings. The interface provides multiple views including a ref view for branches and tags, a commit view for browsing history, and a diff view for inspecting changes. GRV reads the repository directly using libgit2 rather than shelling out to git commands, resulting in fast navigation even in large repositories. The behaviour and style can be customised through a .grvrc configuration file.
How do I run a basic grv example?
Run `grv` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -repoFilePath _path_ do in grv?
Repository file path (default: ".")