Troubleshooting AWS CodeCommit - AWS CodeCommit

Troubleshooting AWS CodeCommit

The following information might help you troubleshoot common issues in AWS 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, macOS, or Unix:

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

    On Windows:

    set GIT_TRACE_PACKET=1 set GIT_TRACE=1 set GIT_CURL_VERBOSE=1
    Note

    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
    Tip

    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.