git help
git help es un comando que sirve para acceder a la documentación integrada de los comandos de Git. Te da una forma cómoda de aprender qué comandos existen, qué opciones tienen y cómo se usan.
Cuando Git todavía te suena nuevo o necesitas una referencia rápida de un comando concreto, git help es un recurso muy útil. Te permite explorar y entender lo que hace Git sin tener que buscar documentación en otra parte.
Ejemplos
Mostrar la página de manual de un comando de Git concreto
git help commitEsto abrirá la página de manual de git commit en tu visor de texto o navegador predeterminado, según la configuración de Git. La página de manual incluye una descripción detallada del comando, sus opciones y ejemplos de uso.
Para moverte por la página de manual en la terminal, puedes usar las flechas, las teclas Page Up y Page Down, y la tecla Q para salir.
NAME
git-commit - Record changes to the repository
SYNOPSIS
git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]
[--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>)]
[-F <file> | -m <msg>] [--reset-author] [--allow-empty]
[--allow-empty-message] [--no-verify] [-e] [--author=<author>]
[--date=<date>] [--cleanup=<mode>] [--[no-]status]
[-i | -o] [--pathspec-from-file=<file> [--pathspec-file-nul]]
[(--trailer <token>[(=|:)<value>])...] [-S[<keyid>]]
[--] [<pathspec>...]
DESCRIPTION
Create a new commit containing the current contents of the index and the given log message describing the changes. The new commit is a direct child of HEAD, usually the tip of the current branch, and the branch is updated to point
to it (unless no branch is associated with the working tree, in which case HEAD is "detached" as described in git-checkout(1)).
The content to be committed can be specified in several ways:
1. by using git-add(1) to incrementally "add" changes to the index before using the commit command (Note: even modified files must be "added");
...Listar todos los comandos de Git disponibles
git help --allEsto mostrará una lista de todos los comandos de Git, agrupados por categoría. Después puedes usar git help <command> para aprender más sobre un comando concreto.
Para moverte por la lista en la terminal, puedes usar las flechas, las teclas Page Up y Page Down, y la tecla Q para salir.
See 'git help <command>' to read about a specific subcommand
Main 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
...Listar todas las guías y tutoriales de Git
Además de la ayuda específica de cada comando, Git también incluye guías y tutoriales integrados:
git help -gEsto listará las guías y tutoriales disponibles. Después puedes abrirlos ejecutando git help guide-name, donde guide-name es uno de los temas de la lista.
The Git concept guides are:
core-tutorial A Git core tutorial for developers
credentials Providing usernames and passwords to Git
cvs-migration Git for CVS users
diffcore Tweaking diff output
everyday A useful minimum set of commands for Everyday Git
faq Frequently asked questions about using Git
glossary A Git Glossary
namespaces Git namespaces
remote-helpers Helper programs to interact with remote repositories
submodules Mounting one repository inside another
tutorial A tutorial introduction to Git
tutorial-2 A tutorial introduction to Git: part two
workflows An overview of recommended workflows with Git
....gitignoregit checkoutgit configgit taggit worktree