Troubleshooting Amazon CodeCommit - 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).

Troubleshooting Amazon CodeCommit

The following information might help you troubleshoot common issues in Amazon CodeCommit.

Turn on debugging

Problem: I want to turn on debugging to get more information about my repository and how Git is executing commands.

Possible fixes: Try the following:

  1. At the terminal or command prompt, run the following commands on your local machine before running Git commands:

    On Linux, OS X, or Unix:

    export GIT_TRACE_PACKET=1 export GIT_TRACE=1 export GIT_CURL_VERBOSE=1

    On Windows:


    Setting GIT_CURL_VERBOSE is useful for HTTPS connections only. SSH does not use the libcurl library.

  2. To get more information about your Git repository, we recommend installing the latest version of git-sizer. Follow the instructions for intalling the utility appropriate to your operating system and environment. Once installed, at the command line or terminal, change directories to your local repository and then run the following command:

    git-sizer --verbose

    Consider saving the output of the command to a file so that you can easily share it with others when troubleshooting problems, particularly over time.