{"_id":"5bb4ff3370d0980003218a05","project":"54cf411f9d09bb0d00a17a1c","version":{"_id":"54cf411f9d09bb0d00a17a1f","project":"54cf411f9d09bb0d00a17a1c","__v":15,"createdAt":"2015-02-02T09:19:27.656Z","releaseDate":"2015-02-02T09:19:27.656Z","categories":["54cf41209d09bb0d00a17a20","54cfb99bbba1a023008741af","54cfb9a65ff7e617002bbd7f","54cfba03bba1a023008741b6","54cfba0ebba1a023008741b8","54cfba19bba1a023008741b9","54cfba29bba1a023008741bb","54cfba345ff7e617002bbd87","54cfba3ebba1a023008741bc","54cfba473995cf0d0006f6f0","54e371b18ef7552300409bf2","54e37aa5e887c50d005ef629","555a4e9b147f91190092d137","56b0e91802f4bc0d006ce254","5bb4f4e01635b500032b94fd"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5bb4f4e01635b500032b94fd","project":"54cf411f9d09bb0d00a17a1c","version":"54cf411f9d09bb0d00a17a1f","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2018-10-03T16:57:04.619Z","from_sync":false,"order":7,"slug":"migrating","title":"Migrating to AWS Cloud9"},"user":"5bac0709475b5d000364fa42","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-10-03T17:41:07.439Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"In this phase, you upload folders and files from the Cloud9 IDE to a source code repository in the cloud (an activity also known as *pushing* to a repository). \n\nWe recommend the following three source-code hosting services from the many that are available on the market:\n\n* [AWS CodeCommit](https://aws.amazon.com/codecommit/)\n* [GitHub](https://github.com/)\n* [Bitbucket](https://bitbucket.org/product)\n\n# To push folders and files to AWS CodeCommit\n\n* **To make an initial push of folders and files from the Cloud9 IDE to an AWS CodeCommit repository**, see [Migrate Local or Unversioned Content to AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-migrate-repository-local.html) in the *AWS CodeCommit User Guide*.\n* **To make subsequent pushes of folders and files from the Cloud9 IDE to an AWS CodeCommit repository**, see [Create or Add a File to an AWS CodeCommit Repository](https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-create-file.html) in the *AWS CodeCommit User Guide*.\n\nWhen you're done, [return to the migration checklist](migration-checklist#section-step-1-download-folders-files-and-data-from-your-workspace).\n\n# To push folders and files to GitHub\n\n* **To make an initial push of folders and files from the Cloud9 IDE to a GitHub repository**, see [Adding an existing project to GitHub using the command line](https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/#platform-linux) on the GitHub Help website.\n* **To make subsequent pushes of folders and files from the Cloud9 IDE to a GitHub repository**, see [Adding a file to a repository using the command line](https://help.github.com/articles/adding-a-file-to-a-repository-using-the-command-line/#platform-linux) on the GitHub Help website.\n\nWhen you're done, [return to the migration checklist](migration-checklist#section-step-1-download-folders-files-and-data-from-your-workspace).\n\nSee also: \n\n* [GitHub Sample for AWS Cloud9](https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-github.html)\n* [GitHub Guides](https://guides.github.com/)\n* [Other resources to learn Git](https://try.github.io/)\n\n# To push folders and files to Bitbucket\n\n* **To make an initial push of folders and files from the Cloud9 IDE to a Bitbucket repository**, see [Add unversioned code to a repository](https://confluence.atlassian.com/bitbucket/add-unversioned-code-to-a-repository-877177133.html) on the Bitbucket Support website.\n* **To make subsequent pushes of folders and files from the Cloud9 IDE to a Bitbucket repository**, see [Push code to Bitbucket](https://confluence.atlassian.com/get-started-with-bitbucket/push-code-to-bitbucket-861185309.html) on the Bitbucket Support website.\n\nWhen you're done, [return to the migration checklist](migration-checklist#section-step-1-download-folders-files-and-data-from-your-workspace).","excerpt":"","slug":"uploading-files-to-a-source-code-repository","type":"basic","title":"Uploading Files to a Source Code Repository"}

Uploading Files to a Source Code Repository


In this phase, you upload folders and files from the Cloud9 IDE to a source code repository in the cloud (an activity also known as *pushing* to a repository). We recommend the following three source-code hosting services from the many that are available on the market: * [AWS CodeCommit](https://aws.amazon.com/codecommit/) * [GitHub](https://github.com/) * [Bitbucket](https://bitbucket.org/product) # To push folders and files to AWS CodeCommit * **To make an initial push of folders and files from the Cloud9 IDE to an AWS CodeCommit repository**, see [Migrate Local or Unversioned Content to AWS CodeCommit](https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-migrate-repository-local.html) in the *AWS CodeCommit User Guide*. * **To make subsequent pushes of folders and files from the Cloud9 IDE to an AWS CodeCommit repository**, see [Create or Add a File to an AWS CodeCommit Repository](https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-create-file.html) in the *AWS CodeCommit User Guide*. When you're done, [return to the migration checklist](migration-checklist#section-step-1-download-folders-files-and-data-from-your-workspace). # To push folders and files to GitHub * **To make an initial push of folders and files from the Cloud9 IDE to a GitHub repository**, see [Adding an existing project to GitHub using the command line](https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/#platform-linux) on the GitHub Help website. * **To make subsequent pushes of folders and files from the Cloud9 IDE to a GitHub repository**, see [Adding a file to a repository using the command line](https://help.github.com/articles/adding-a-file-to-a-repository-using-the-command-line/#platform-linux) on the GitHub Help website. When you're done, [return to the migration checklist](migration-checklist#section-step-1-download-folders-files-and-data-from-your-workspace). See also: * [GitHub Sample for AWS Cloud9](https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-github.html) * [GitHub Guides](https://guides.github.com/) * [Other resources to learn Git](https://try.github.io/) # To push folders and files to Bitbucket * **To make an initial push of folders and files from the Cloud9 IDE to a Bitbucket repository**, see [Add unversioned code to a repository](https://confluence.atlassian.com/bitbucket/add-unversioned-code-to-a-repository-877177133.html) on the Bitbucket Support website. * **To make subsequent pushes of folders and files from the Cloud9 IDE to a Bitbucket repository**, see [Push code to Bitbucket](https://confluence.atlassian.com/get-started-with-bitbucket/push-code-to-bitbucket-861185309.html) on the Bitbucket Support website. When you're done, [return to the migration checklist](migration-checklist#section-step-1-download-folders-files-and-data-from-your-workspace).