From 73528f1744cdc5850ee2e135064bbde09402c2cb Mon Sep 17 00:00:00 2001 From: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Date: Wed, 14 Feb 2024 17:26:43 -0300 Subject: [PATCH] git-gui: add page (#12258) Co-authored-by: K.B.Dharun Krishna --- pages/common/git-gui.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/common/git-gui.md diff --git a/pages/common/git-gui.md b/pages/common/git-gui.md new file mode 100644 index 000000000..a50ceb259 --- /dev/null +++ b/pages/common/git-gui.md @@ -0,0 +1,37 @@ +# git gui + +> A GUI for Git to manage branches, commits, and remotes, and perform local merges. +> See also: `git-cola`, `gitk`. +> More information: . + +- Launch the GUI: + +`git gui` + +- Show 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 citool` + +- Open `git gui citool` in the "Amend Last Commit" mode: + +`git gui citool --amend` + +- Open `git gui citool` in a read-only mode: + +`git gui citool --nocommit` + +- Show a browser for the tree of a specific branch, opening the blame tool when clicking on the files: + +`git gui browser maint`