Working with commits in Amazon CodeCommit repositories - Amazon CodeCommit
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon CodeCommit is no longer available to new customers. Existing customers of Amazon CodeCommit can continue to use the service as normal. Learn more"

Working with commits in Amazon CodeCommit repositories

Commits are snapshots of the contents and changes to the contents of your repository. Every time a user commits and pushes a change, that information is saved and stored. So, too, is information that includes who committed the change, the date and time of the commit, and the changes made as part of the commit. You can also add tags to commits, to easily identify specific commits. In CodeCommit, you can:

  • Review commits.

  • View the history of commits in a graph.

  • Compare a commit to its parent or to another specifier.

  • Add comments to your commits and reply to comments made by others.

Adding a comment to a changed line in a commit.

Before you can push commits to a CodeCommit repository, you must set up your local computer to connect to the repository. For the simplest method, see For HTTPS users using Git credentials.

For information about working with other aspects of your repository in CodeCommit, see Working with repositories, Working with files, Working with pull requests , Working with branches, and Working with user preferences.