snippetbashTip
git gui — A GUI for Git to manage branches, commits, and remotes, and perform local merges. See also: `git-col
Viewed 0 times
git guicommandclimanagebranchesforguigit
Problem
How to use the
git gui command: A GUI for Git to manage branches, commits, and remotes, and perform local merges. See also: git-cola, gitk. More information: <https://git-scm.com/docs/git-gui>.Solution
git gui — A GUI for Git to manage branches, commits, and remotes, and perform local merges. See also: git-cola, gitk. More information: <https://git-scm.com/docs/git-gui>.Launch the GUI:
git guiShow a specific file with author name and commit hash on each line:
git gui blame {{path/to/file}}Open
git gui blame in a specific revision:git gui blame {{revision}} {{path/to/file}}Open
git gui blame and scroll the view to center on a specific line:git gui blame --line={{line}} {{path/to/file}}Open a window to make one commit and return to the shell when it is complete:
git gui citoolOpen
git gui citool in the "Amend Last Commit" mode:git gui citool --amendOpen
git gui citool in a read-only mode:git gui citool --nocommitShow a browser for the tree of a specific branch, opening the blame tool when clicking on the files:
git gui browser maintCode Snippets
Launch the GUI
git guiShow a specific file with author name and commit hash on each line
git gui blame {{path/to/file}}Open `git gui blame` in a specific revision
git gui blame {{revision}} {{path/to/file}}Open `git gui blame` and scroll the view to center on a specific line
git gui blame --line={{line}} {{path/to/file}}Open a window to make one commit and return to the shell when it is complete
git gui citoolContext
tldr-pages: common/git gui
Revisions (0)
No revisions yet.