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

A new console design is available for this service. Although the procedures in this guide were written for the older version of the console, you will find many of the concepts and basic procedures in this guide still apply.

Browse Files in an AWS CodeCommit Repository

After you connect to an AWS CodeCommit repository, you can clone it to a local repo or use the AWS CodeCommit console to browse its contents. This topic provides instructions for browsing the content of an AWS CodeCommit repository by using the console.


For active AWS CodeCommit users, there is no charge for browsing code from the AWS CodeCommit console. For information about when charges may apply, see Pricing.

      A view of the contents of a file in the AWS CodeCommit console

Browse an AWS CodeCommit Repository

You can use the AWS CodeCommit console to review the files contained in a repository or to quickly read the contents of a file.

To browse the content of a repository

  1. Open the AWS CodeCommit console at

  2. On the Dashboard page, from the list of repositories, choose the repository you want to browse.

  3. In the Code view, browse the contents of the default branch for your repository.

    To change the view to a different branch or tag, choose the view selector button. Either choose a branch or tag name from the drop-down list, or in the filter box, type the name of the branch or tag, and then choose it from the list.

  4. Do one of the following:

    • To view the contents of a directory, choose it from the list. You can choose any of the directories in the navigation list to return to that directory view. You can also use the up arrow at the top of the directory list.

    • To view the contents of a file, choose it from the list. If the file is larger than the commit object limit, it cannot be displayed in the console and must be viewed in a local repo instead. For more information, see Limits. To exit the file view, from the code navigation bar, choose the directory you want to view.


    If you choose a binary file, a warning message appears, asking you to confirm that you want to display the contents. To view the file, choose Show file contents. If you do not want to view the file, from the code navigation bar, choose the directory you want to view.

    If you choose a markdown file (.md), use the Rendered Markdown and Markdown Source buttons to toggle between the rendered and syntax views.