{"id":2914,"date":"2019-08-30T09:38:26","date_gmt":"2019-08-30T09:38:26","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=2914"},"modified":"2022-03-03T08:25:00","modified_gmt":"2022-03-03T08:25:00","slug":"aws-codecommit-2","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/","title":{"rendered":"Understanding AWS CodeCommit"},"content":{"rendered":"\n<p><strong>Understanding AWS CodeCommit:\u00a0<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>fully-managed source control service<\/li><li>Can host secure and highly scalable private Git repositories.<\/li><li>integrates with AWS CodePipeline and AWS CodeDeploy.<\/li><li>Based on Git<\/li><li>Centralized repository for all code, binaries, images, and libraries<\/li><li>Tracks and manages code changes<\/li><li>Maintains version history<\/li><li>multiple sources can be used to update the stored code<\/li><li>collaboration facilityis also provided<\/li><li>can host private Git repositories<\/li><li>the AWS service is both secured and highly scalable<\/li><li>Maximum Number of repositories per account: \u00a01000<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Working <\/strong><\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"487\" height=\"400\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-217-487x400.png\" alt=\"Understanding AWS CodeCommit\" class=\"wp-image-3888\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-217-487x400.png 487w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-217.png 624w\" sizes=\"auto, (max-width: 487px) 100vw, 487px\" \/><\/figure><\/div>\n\n\n\n<ol class=\"wp-block-list\"><li>Use the AWS CLI\/CodeCommit console for creating CodeCommit repository.<\/li><li>From development machine, use Git to run git clone command, with name of CodeCommit repository to create local repo connected to CodeCommit repository.<\/li><li>Use local repo on development machine to make changes \u2013 add\/ edit\/delete files, and then run git add command for staging modified files locally. After which, run git commit command for committing files locally, and then run git push command to send files to CodeCommit repository.<\/li><li>Run git pull command to synchronize files in CodeCommit repository with local repo and download changes from other users to work with latest version of files.<\/li><\/ol>\n\n\n\n<p>Tasks include:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Create a CodeCommit Repository<\/li><li>Add Files to Repository<\/li><li>Browse the Contents of Repository<\/li><li>Create and Collaborate on a Pull Request<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>CodeCommit Repositories<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>A repository version control object in CodeCommit.<\/li><li>It stores code and files for project.<\/li><li>It has project history starting from the very first commit till the latest changes.<\/li><li>repository can also be shared with other users working on the project.<\/li><li>AWS tags can easily perform identification of repositories<\/li><li>With tags, notifications can easily set to repository users about events<\/li><li>Can change default settings for repository<\/li><li>can create triggers for repository for code push or other events trigger actions<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"335\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-218.png\" alt=\"Understanding AWS CodeCommit\" class=\"wp-image-3889\"\/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Create empty CodeCommit repository from\n<ul>\n<li>AWS CLI<\/li>\n<\/ul>\n<ul>\n<li>CodeCommit console<\/li>\n<\/ul>\n<\/li><li>CLI also provide facility to add tags to repository during creation<\/li><li>Post repository creation, connect to it and add code.<\/li><li>During first connection, its contents are cloned to local machine.<\/li><li>Can add files to and edit files in a repository directly from CodeCommit console.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>CodeCommit Files<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>It is a version-controlled, self-contained piece of information<\/li><li>Files can access using:<ul><li>repository users <\/li><\/ul><ul><li>branch storing the file <\/li><\/ul><\/li><li>repository files can organize similar to directory structure<\/li><li>Changes to file automatically tracked by CodeCommit<\/li><li>Can compare versions of file and store different versions of a file in different repository branches.<\/li><\/ul>\n\n\n\n<p>To add or edit a file in a repository, use<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Git client<\/li><li>CodeCommit console,<\/li><li>AWS CLI<\/li><li>CodeCommit API.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"400\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-219-612x400.png\" alt=\"example\" class=\"wp-image-3890\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-219-612x400.png 612w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2019\/09\/image-219.png 624w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>CodeCommit Commits<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Commits are snapshots of contents and changes to repository<\/li><li>commit information is saved for every user<\/li><li>Meta information includes\n<ul>\n<li>who committed the change<\/li>\n<\/ul>\n<ul>\n<li>the date and time of the commit<\/li>\n<\/ul>\n<ul>\n<li>changes made as part of the commit<\/li>\n<\/ul>\n<\/li><li>tags can be added to commits, for easy identification<\/li><li>In CodeCommit, can:\n<ul>\n<li>Review commits.<\/li>\n<\/ul>\n<ul>\n<li>View the history of commits in a graph.<\/li>\n<\/ul>\n<ul>\n<li>Compare a commit to its parent or to another specifier.<\/li>\n<\/ul>\n<ul>\n<li>Add comments to commits and reply to comments made by others.<\/li>\n<\/ul>\n<\/li><li>CodeCommit console can browse commit history for a repository.<\/li><li>Can also view a graph of commits in repository and its branches over time.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Understanding AWS CodeCommit:\u00a0 fully-managed source control service Can host secure and highly scalable private Git repositories. integrates with AWS CodePipeline and AWS CodeDeploy. Based on Git Centralized repository for all code, binaries, images, and libraries Tracks and manages code changes Maintains version history multiple sources can be used to update the stored code collaboration facilityis&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2476,"menu_order":28,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[505],"class_list":["post-2914","page","type-page","status-publish","hentry","category-amazon-aws","tag-aws-codecommit"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Understanding AWS CodeCommit - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Upgrade your skills and become AWS Certified Developer - Associate with Practice Exam on AWS CodeCommit. Practice and get Certified Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding AWS CodeCommit - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Upgrade your skills and become AWS Certified Developer - Associate with Practice Exam on AWS CodeCommit. Practice and get Certified Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-03T08:25:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2019\/09\/image-217-487x400.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/\",\"name\":\"Understanding AWS CodeCommit - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2019-08-30T09:38:26+00:00\",\"dateModified\":\"2022-03-03T08:25:00+00:00\",\"description\":\"Upgrade your skills and become AWS Certified Developer - Associate with Practice Exam on AWS CodeCommit. Practice and get Certified Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Certified Developer Associate (DVA-C01)\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Understanding AWS CodeCommit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding AWS CodeCommit - Testprep Training Tutorials","description":"Upgrade your skills and become AWS Certified Developer - Associate with Practice Exam on AWS CodeCommit. Practice and get Certified Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/","og_locale":"en_US","og_type":"article","og_title":"Understanding AWS CodeCommit - Testprep Training Tutorials","og_description":"Upgrade your skills and become AWS Certified Developer - Associate with Practice Exam on AWS CodeCommit. Practice and get Certified Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-03T08:25:00+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2019\/09\/image-217-487x400.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/","name":"Understanding AWS CodeCommit - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2019-08-30T09:38:26+00:00","dateModified":"2022-03-03T08:25:00+00:00","description":"Upgrade your skills and become AWS Certified Developer - Associate with Practice Exam on AWS CodeCommit. Practice and get Certified Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/aws-codecommit-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"AWS Certified Developer Associate (DVA-C01)","item":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-developer-associate\/"},{"@type":"ListItem","position":3,"name":"Understanding AWS CodeCommit"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=2914"}],"version-history":[{"count":8,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2914\/revisions"}],"predecessor-version":[{"id":51838,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2914\/revisions\/51838"}],"up":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2476"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=2914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=2914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=2914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}