Linux command
git-gui 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start git gui
git gui
Open blame viewer
git gui blame [file.txt]
Open blame at specific line
git gui blame --line=[100] [file.txt]
Browse repository tree at branch
git gui browser [branch]
Open citool for a single commit
git gui citool
Amend the last commit with citool
git gui citool --amend
说明
git gui is a Tcl/Tk graphical interface for Git. It provides visual tools for committing, browsing history, and viewing blame annotations. The interface shows staged and unstaged changes, allowing selective staging and commit message composition. The blame viewer shows line-by-line attribution with interactive navigation through the commit history.
参数
- blame _FILE_
- Open blame viewer for file.
- browser _REVISION_
- Browse tree at revision.
- citool
- Start git gui and make exactly one commit before exiting.
- version
- Show the currently running version of git gui.
- --line=_NUMBER_
- (blame) Scroll blame view to center on line NUMBER.
- --amend
- (citool) Enter Amend Last Commit mode automatically.
- --nocommit
- (citool) Exit with zero status without making a commit.
FAQ
What is the git-gui command used for?
git gui is a Tcl/Tk graphical interface for Git. It provides visual tools for committing, browsing history, and viewing blame annotations. The interface shows staged and unstaged changes, allowing selective staging and commit message composition. The blame viewer shows line-by-line attribution with interactive navigation through the commit history.
How do I run a basic git-gui example?
Run `git gui` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does blame _FILE_ do in git-gui?
Open blame viewer for file.