Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-gui: add page #12258

Merged
merged 7 commits into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions pages/common/git-gui.md
Original file line number Diff line number Diff line change
@@ -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: <https://git-scm.com/docs/git-gui>.
- 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`
Loading