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

Browse the Contents of 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.

Note

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

Browse the Contents of 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. This can help you determine which branch to check out or whether you want to create a local copy of a repository.

To browse the content of a repository

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

  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 repo.

    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 instead must be viewed in a local repo. For more information, see Limits. To exit the file view, from the code navigation bar, choose the directory you want to view.

    Note

    If you choose a binary file, a warning message will appear asking you to confirm 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.