AWS CodeCommit
User Guide (API Version 2015-04-13)

The procedures in this guide support the new console design. If you choose to use the older version of the console, you will find many of the concepts and basic procedures in this guide still apply. To access help in the new console, choose the information icon.

Compare Branches in AWS CodeCommit

You can use the AWS CodeCommit console to compare branches in an AWS CodeCommit repository. Comparing branches helps you quickly view the differences between a branch and the default branch, or view the differences between any two branches.

Compare a Branch to the Default Branch

Use the AWS CodeCommit console to quickly view the differences between a branch and the default branch for your repository.

  1. Open the AWS CodeCommit console at https://console.aws.amazon.com/codesuite/codecommit/home.

  2. In Repositories, choose the name of the repository where you want to compare branches.

  3. In the navigation pane, choose Commits, and then choose the Compare commits tab.

  4. In Destination, choose the name of the default branch. In Source, choose the branch you want to compare to the default branch. Choose Compare.

Compare Two Specific Branches

Use the AWS CodeCommit console to view the differences between two branches that you want to compare.

  1. Open the AWS CodeCommit console at https://console.aws.amazon.com/codesuite/codecommit/home.

  2. In Repositories, choose the name of the repository where you want to compare branches.

  3. In the navigation pane, choose Commits, and then choose the Compare commits tab.

  4. In Destination and Source, choose the two branches to compare, and then choose Compare. To view the list of changed files, expand the changed files list. You can view changes in files side by side (Split view) or inline (Unified view).

    Note

    If you are signed in as an IAM user, you can configure and save your preferences for viewing code and other console settings. For more information, see Working with User Preferences.

    
                        An abbreviated view of the differences between two branches.