Skip to main content

About commits

You can save small groups of meaningful changes as commits.

About commits

De forma similar al guardar un archivo que se editó, una confirmación registra los cambios en uno o más archivos en tu rama. Git asigna una ID única a cada comentario, a la cual se le llama SHA o hash, la cual identifica:

  • Los cambios específicos
  • Cuando se realizaron los cambios
  • Quién creó los cambios

Cuando realizas una confirmación, debes incluir un mensaje de confirmación que describa brevemente los cambios.

You can add a co-author on any commits you collaborate on. For more information, see "Creating a commit with multiple authors."

Rebasing allows you to change a series of commits and can modify the order of the commits in your timeline. For more information, see "About git rebase."

About commit branches and tag labels

You can see which branch a commit is on by looking at the labels beneath the commit on the commit page.

  1. En tu empresa, visita la página principal del repositorio.
  2. En la página principal del repositorio, haz clic en las confirmaciones para navegar a sus páginas. Captura de pantalla de la página principal del repositorio con las confirmaciones enfatizadas
  3. Navigate to the commit by clicking the commit message link. Screenshot of commit with commit message link emphasized
  4. To see what branch the commit is on, check the label below the commit message. Screenshot of commit with commit branch indicator emphasized

If your commit is not on the default branch (main), the label will show the branches which contain the commit. If the commit is part of an unmerged pull request, you can click the link to go to the pull request.

Once the commit is on the default branch, any tags that contain the commit will be shown and the default branch will be the only branch listed. For more information on tags, see "Git Basics - Tagging" in the Git documentation.

Screenshot of commit with commit tag emphasized

Further reading