near_me
Linear Algebra
keyboard_arrow_down 54 guides
chevron_leftCookbooks
Amending the most recent commit messageChecking git versionCreating a new repositoryDiscarding unstaged changesExiting git log or git diffGetting help on Git commandsGetting the current branch namePagination for output of git commandsRemoving local untracked filesReverting a file to a specific revisionUndoing staged changesUndoing staged changes before commitViewing commit history
check_circle
Mark as learned thumb_up
0
thumb_down
0
chat_bubble_outline
0
Comment auto_stories Bi-column layout
settings
Pagination for output of git commands
schedule Aug 12, 2023
Last updated local_offer
Tags Master the mathematics behind data science with 100+ top-tier guides
Start your free 7-days trial now!
Start your free 7-days trial now!
We can enable pagination for output of git commands on a one off or permanent basis depending on our needs.
One off
To enable paging on a one off basis, pass the -p
or --paginate
switch to the git command you are running:
git -p help -a
See 'git help <command>' to read about a specific subcommandMain Porcelain Commands add Add file contents to the index am Apply a series of patches from a mailbox archive Create an archive of files from a named tree bisect Use binary search to find the commit that introduced a bug branch List, create, or delete branches bundle Move objects and refs by archive checkout Switch branches or restore working tree files cherry-pick Apply the changes introduced by some existing commits citool Graphical alternative to git-commit clean Remove untracked files from the working tree clone Clone a repository into a new directory commit Record changes to the repository describe Give an object a human readable name based on an available ref diff Show changes between commits, commit and working tree, etc fetch Download objects and refs from another repository format-patch Prepare patches for e-mail submission gc Cleanup unnecessary files and optimize the local reposit
Here we passed the -p
switch to the git help
command, and the resulting output is paginated.
Permanent
To enable paging, update the pager.status
configuration and set it to true:
git config --global pager.status true
WARNING
Note that if the -p
or --paginate
switch is passed to the command line, it will take precedence over the pager.status
configuration setting.
Published by Arthur Yanagisawa
Edited by 0 others
Did you find this page useful?
thumb_up
thumb_down
Comment
Citation
Ask a question or leave a feedback...
thumb_up
0
thumb_down
0
chat_bubble_outline
0
settings
Enjoy our search
Hit / to insta-search docs and recipes!