To set up a GitHub repository in AWS Cloud9, users must first generate a personal access token on GitHub. They then configure their username and email address in the Cloud9 terminal. Users can clone an existing GitHub repository into Cloud9 by pasting the repository URL into the clone dialog. Once files are edited in Cloud9, users commit and push changes to GitHub by selecting options from the GitHub icon dropdown menu and entering their username and personal access token.