{"id":60119,"date":"2018-09-12T15:00:24","date_gmt":"2018-09-12T12:00:24","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=60119"},"modified":"2019-04-23T14:15:33","modified_gmt":"2019-04-23T11:15:33","slug":"git-edit-commit-message-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/","title":{"rendered":"Git Edit Commit Message Example"},"content":{"rendered":"<p>In this post, we present a Git Edit Commit Message Example.<\/p>\n<h2>1. Introduction<\/h2>\n<p>Performing a commit operation in Git is not something to be taken lightly. Suppose we unintentionally apply the wrong commit message. Are we doomed? Fortunately, we can edit the message after the fact.<\/p>\n<p>In this example, we will demonstrate how to edit a commit message when the commit has yet to be pushed to a remote repository. We will also show how to edit a commit message when the commit has already been pushed to a remote repository.<\/p>\n<h3>1.1 Tools Used in this Example<\/h3>\n<ul>\n<li>Git 2.17<\/li>\n<li>Bitbucket<\/li>\n<\/ul>\n<p>Git downloads are available here: <a href=\"https:\/\/git-scm.com\/downloads\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/git-scm.com\/downloads<\/a>.<\/p>\n<p>Bitbucket is a Git repository management system for development teams. You can sign up for a free Bitbucket account at <a href=\"https:\/\/bitbucket.org\/account\/signup\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/bitbucket.org\/account\/signup\/<\/a>.\n<\/p>\n<h2>2. Git Edit Commit Message Example<\/h2>\n<h3>2.1 Editing the Message of the Last Commit<\/h3>\n<p>Suppose that we add several dependencies to the <code>pom.xml<\/code> of a Maven project. After testing the modification, we decide to stage and commit the change to our local repository:<\/p>\n<pre class=\"brush:bash\">$ git commit -a -m 'Added spring-security-web dependency'\n[master 90b8029] Added spring-security-web dependency\n 1 file changed, 3 insertions(+), 3 deletions(-)\n<\/pre>\n<p><strong>Note:<\/strong> The <code>-m<\/code> option allows us to add a commit message inline.<\/p>\n<p>After some consideration, we realize the commit message is misleading since we added other dependencies, not the spring-security-web dependency only. As all dependencies are related to Spring Security, a better message is &#8220;Added Spring Security dependencies&#8221;. We can edit the commit message using the <code>amend<\/code> option:<\/p>\n<pre class=\"brush:bash\">$ git commit --amend -m 'Added Spring Security dependencies'\n[master 7bf2d01] Added Spring Security dependencies\n Date: Thu Sep 6 18:16:32 2018 -0700\n 1 file changed, 3 insertions(+), 3 deletions(-)\n<\/pre>\n<p><strong>Note: <\/strong>If you have staged any other changes since the last commit, they too will be included in the commit so this option should be used with care.<\/p>\n<p>If you run the <code>git log<\/code> command, you will see that message for the last commit has been updated.<\/p>\n<pre class=\"brush:bash; highlight:[2]; wrap-lines:false\">$ git log --oneline\n7bf2d01 Added Spring Security dependencies\n945ceee Merge branch 'master' of https:\/\/bitbucket.org\/gilbert_lopez\/ebookstore.git\n9492190 Spring Security SQL script for USERS and Authorities tables.\nc464a25 README updated with Spring Security Database Schema location information.\n5b61da8 README.md edited online with Bitbucket\n53571f6 Added Spring Security using JDBC authentication.\n61d10f2 Added form field validation for Book domain model.\nc8659b8 Moved image file saving functionality to the service layer.\na0fcb77 Added edit\/update function\n215bb63 Added upload file functionality.\nc9e85b0 Check in remaining files.\na791f39 Merge branch 'master' of https:\/\/gilbert_lopez@bitbucket.org\/gilbert_lopez\/ebookstore.git\n92b22b1 README.md created online with Bitbucket\n302bb61 Initial e-Commerce project check-in\n<\/pre>\n<p>The <code>oneline<\/code> option directs the log command to display the commit\u2019s abbreviated hash and message only.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<h3>2.2 Editing the Message for a Recent Commit<\/h3>\n<p>If you want to edit the message for a commit other than the most recent one, you can use the rebase tool. Let&#8217;s run the Git log command to view a list of commits in our local repository.<\/p>\n<pre class=\"brush:bash; wrap-lines:false\">$ git log --oneline\n7bf2d01 Added Spring Security dependencies\n945ceee Merge branch 'master' of https:\/\/bitbucket.org\/gilbert_lopez\/ebookstore.git\n9492190 Spring Security SQL script for USERS and Authorities tables.\nc464a25 README updated with Spring Security Database Schema location information.\n5b61da8 README.md edited online with Bitbucket\n53571f6 Added Spring Security using JDBC authentication.\n61d10f2 Added form field validation for Book domain model.\nc8659b8 Moved image file saving functionality to the service layer.\na0fcb77 Added edit\/update function\n215bb63 Added upload file functionality.\nc9e85b0 Check in remaining files.\na791f39 Merge branch 'master' of https:\/\/gilbert_lopez@bitbucket.org\/gilbert_lopez\/ebookstore.git\n92b22b1 README.md created online with Bitbucket\n302bb61 Initial e-Commerce project check-in\n<\/pre>\n<p>Suppose you want to edit the message for the third commit in the list &#8211; &#8220;Spring Security SQL script for USERS and Authorities tables&#8221;. To do this, run the following command:<\/p>\n<pre class=\"brush:bash\">$ git rebase -i HEAD~3<\/pre>\n<p>(The <code>-i<\/code> options allows you to run the rebase tool interactively.)<\/p>\n<p>Since we want to edit the third commit message, we specify 3 for the number of commits, starting from the latest, that we would like to edit.<\/p>\n<p>The rebase tool will display a file that includes the last three commits and a help section for different actions you can apply. Since we want to change the commit message, we\u2019ll use the \u2018reword\u2019 option. Replace \u2018pick\u2019 with \u2018reword\u2019 (or just \u2018r\u2019) in front of the commit we would like to update and save the file.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Git rebase Command Output<\/em><\/span><\/p>\n<pre class=\"brush:bash; highlight:[1]; wrap-lines:false\">r 9492190 Spring Security SQL script for USERS and Authorities tables.\npick cb2a773 README updated with Spring Security Database Schema location information.\npick 13775d3 Added Spring Security dependencies\n\n# Rebase 5b61da8..13775d3 onto 5b61da8 (3 commands)\n#\n# Commands:\n# p, pick = use commit\n# r, reword = use commit, but edit the commit message\n# e, edit = use commit, but stop for amending\n# s, squash = use commit, but meld into previous commit\n# f, fixup = like \"squash\", but discard this commit's log message\n# x, exec = run command (the rest of the line) using shell\n# d, drop = remove commit\n#\n# These lines can be re-ordered; they are executed from top to bottom.\n#\n# If you remove a line here THAT COMMIT WILL BE LOST.\n#\n# However, if you remove everything, the rebase will be aborted.\n#\n# Note that empty commits are commented out\n<\/pre>\n<p>This opens the <code>COMMIT_EDITMSG<\/code> file for the commit, where you can edit the message. Make your changes and save the file.[ulp id=&#8217;pzgfvmZhgslwSymm&#8217;]<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Edit Commit Message<\/em><\/span><\/p>\n<pre class=\"brush:bash; highlight:[1]; wrap-lines:false\">Added Spring Security SQL scripts for USERS and Authorities tables.\n\n# Please enter the commit message for your changes. Lines starting\n# with '#' will be ignored, and an empty message aborts the commit.\n#\n# Date:      Sun May 20 21:26:47 2018 -0700\n#\n# interactive rebase in progress; onto 5b61da8\n# Last command done (1 command done):\n#    r 9492190 Spring Security SQL script for USERS and Authorities tables.\n# Next commands to do (2 remaining commands):\n#    pick cb2a773 README updated with Spring Security Database Schema location information.\n#    pick 13775d3 Added Spring Security dependencies\n# You are currently editing a commit while rebasing branch 'master' on '5b61da8'.\n#\n# Changes to be committed:\n#       new file:   ebookstore\/src\/main\/resources\/spring_security.sql\n#<\/pre>\n<p>Run <code>git log \u2013oneline<\/code> again to verify that the message has been changed.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Git log Command Output<\/em><\/span><\/p>\n<pre class=\"brush:bash; highlight:[4]; wrap-lines:false\">$ git log --oneline\n95fbca1 Added Spring Security dependencies\nf878c94 README updated with Spring Security Database Schema location information.\nc3045db Added Spring Security SQL scripts for USERS and Authorities tables.\n5b61da8 README.md edited online with Bitbucket\n53571f6 Added Spring Security using JDBC authentication.\n61d10f2 Added form field validation for Book domain model.\nc8659b8 Moved image file saving functionality to the service layer.\na0fcb77 Added edit\/update function\n215bb63 Added upload file functionality.\nc9e85b0 Check in remaining files.\na791f39 Merge branch 'master' of https:\/\/gilbert_lopez@bitbucket.org\/gilbert_lopez\/ebookstore.git\n92b22b1 README.md created online with Bitbucket\n302bb61 Initial e-Commerce project check-in\n<\/pre>\n<h3>2.3 Editing the Message for the Last Commit of a Remote Repository<\/h3>\n<p><strong>Note:<\/strong> This section assumes you have access to a remote repository.<\/p>\n<p>If you want to edit a commit message but have already pushed the changes to a remote repository, you must do two things.<\/p>\n<ul>\n<li>Edit the commit message locally<\/li>\n<li>Push the commit to the remote repository using the force option<\/li>\n<\/ul>\n<p><strong>Warning:<\/strong> This procedure is risky if the repository is shared with others.<\/p>\n<p>Before starting, log in to GitHub or Bitbucket to view your commits for the repository.<\/p>\n<p><figure id=\"attachment_60223\" aria-describedby=\"caption-attachment-60223\" style=\"width: 815px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket-wm.jpg\"><img decoding=\"async\" class=\"wp-image-60223 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket-wm.jpg\" alt=\"Git Edit Commit Message - Commit View in Bitbucket\" width=\"815\" height=\"459\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket-wm.jpg 815w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket-wm-300x169.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket-wm-768x433.jpg 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/a><figcaption id=\"caption-attachment-60223\" class=\"wp-caption-text\">Commit View in Bitbucket<\/figcaption><\/figure><\/p>\n<p>First, we\u2019ll change the message for the last commit <em>locally<\/em>.<\/p>\n<pre class=\"brush:bash; wrap-lines:false\">$ git commit --amend -m 'Added Spring Security dependencies to pom.xml'\n[master fcafda0] Added Spring Security dependencies to pom.xml\n Date: Thu Sep 6 18:16:32 2018 -0700\n 1 file changed, 3 insertions(+), 3 deletions(-)\n<\/pre>\n<p>Secondly, we\u2019ll push the change to the remote repository with the force (-f) option:<\/p>\n<pre class=\"brush:bash; highlight:[1]; wrap-lines:false\">$ git push -f origin master\nCounting objects: 4, done.\nDelta compression using up to 4 threads.\nCompressing objects: 100% (4\/4), done.\nWriting objects: 100% (4\/4), 438 bytes | 0 bytes\/s, done.\nTotal 4 (delta 1), reused 0 (delta 0)\nTo https:\/\/bitbucket.org\/gilbert_lopez\/ebookstore.git\n + 6a5ac0d...fcafda0 master -&gt; master (forced update)\n<\/pre>\n<p>If you go back to your commit view and refresh the page, you will see the change.<\/p>\n<p><figure id=\"attachment_60224\" aria-describedby=\"caption-attachment-60224\" style=\"width: 815px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket2-wm.jpg\"><img decoding=\"async\" class=\"wp-image-60224 size-full\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket2-wm.jpg\" alt=\"Git Edit Commit Message - View in Bitbucket\" width=\"815\" height=\"458\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket2-wm.jpg 815w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket2-wm-300x169.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2018\/09\/bbucket2-wm-768x432.jpg 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/a><figcaption id=\"caption-attachment-60224\" class=\"wp-caption-text\">Commit View in Bitbucket<\/figcaption><\/figure><\/p>\n<h2>3. Summary<\/h2>\n<p>In this post, we demonstrated how to edit commit messages with Git.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we present a Git Edit Commit Message Example. 1. Introduction Performing a commit operation in Git is not something to be taken lightly. Suppose we unintentionally apply the wrong commit message. Are we doomed? Fortunately, we can edit the message after the fact. In this example, we will demonstrate how to edit &hellip;<\/p>\n","protected":false},"author":121,"featured_media":27377,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1353],"tags":[1203,1535,1464],"class_list":["post-60119","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","tag-git","tag-git-bash","tag-git-push"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Git Edit Commit Message Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Interested to learn more about Git? Then check out our detailed example on Git Edit Commit Message! You can also download our FREE Git Tutorial!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Edit Commit Message Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Interested to learn more about Git? Then check out our detailed example on Git Edit Commit Message! You can also download our FREE Git Tutorial!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-12T12:00:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-23T11:15:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Gilbert Lopez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@gillopez_dev\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gilbert Lopez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/\"},\"author\":{\"name\":\"Gilbert Lopez\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6169578062b8f6f6a1f79c82aafdb9ce\"},\"headline\":\"Git Edit Commit Message Example\",\"datePublished\":\"2018-09-12T12:00:24+00:00\",\"dateModified\":\"2019-04-23T11:15:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/\"},\"wordCount\":674,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"keywords\":[\"git\",\"Git bash\",\"git push\"],\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/\",\"name\":\"Git Edit Commit Message Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"datePublished\":\"2018-09-12T12:00:24+00:00\",\"dateModified\":\"2019-04-23T11:15:33+00:00\",\"description\":\"Interested to learn more about Git? Then check out our detailed example on Git Edit Commit Message! You can also download our FREE Git Tutorial!\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/software-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/software-development\/git\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Git Edit Commit Message Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6169578062b8f6f6a1f79c82aafdb9ce\",\"name\":\"Gilbert Lopez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/04\/Gilbert-Lopez_avatar_1492457226-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/04\/Gilbert-Lopez_avatar_1492457226-96x96.jpg\",\"caption\":\"Gilbert Lopez\"},\"description\":\"Gilbert Lopez is an application developer and systems integration developer with experience building business solutions for large and medium-sized companies. He has worked on many Java EE projects. His roles have included lead developer, systems analyst, business analyst and consultant. Gilbert graduated from California State University in Los Angeles with a Bachelor of Science degree in Business.\",\"sameAs\":[\"https:\/\/www.javacodegeeks.com\",\"https:\/\/www.linkedin.com\/in\/gilbertlopezdeveloper\",\"https:\/\/x.com\/gillopez_dev\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/gilbert-lopez\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Git Edit Commit Message Example - Java Code Geeks","description":"Interested to learn more about Git? Then check out our detailed example on Git Edit Commit Message! You can also download our FREE Git Tutorial!","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:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/","og_locale":"en_US","og_type":"article","og_title":"Git Edit Commit Message Example - Java Code Geeks","og_description":"Interested to learn more about Git? Then check out our detailed example on Git Edit Commit Message! You can also download our FREE Git Tutorial!","og_url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2018-09-12T12:00:24+00:00","article_modified_time":"2019-04-23T11:15:33+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","type":"image\/jpeg"}],"author":"Gilbert Lopez","twitter_card":"summary_large_image","twitter_creator":"@gillopez_dev","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Gilbert Lopez","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/"},"author":{"name":"Gilbert Lopez","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6169578062b8f6f6a1f79c82aafdb9ce"},"headline":"Git Edit Commit Message Example","datePublished":"2018-09-12T12:00:24+00:00","dateModified":"2019-04-23T11:15:33+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/"},"wordCount":674,"commentCount":2,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","keywords":["git","Git bash","git push"],"articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/","url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/","name":"Git Edit Commit Message Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","datePublished":"2018-09-12T12:00:24+00:00","dateModified":"2019-04-23T11:15:33+00:00","description":"Interested to learn more about Git? Then check out our detailed example on Git Edit Commit Message! You can also download our FREE Git Tutorial!","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-edit-commit-message-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Software Development","item":"https:\/\/examples.javacodegeeks.com\/category\/software-development\/"},{"@type":"ListItem","position":3,"name":"Git","item":"https:\/\/examples.javacodegeeks.com\/category\/software-development\/git\/"},{"@type":"ListItem","position":4,"name":"Git Edit Commit Message Example"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/6169578062b8f6f6a1f79c82aafdb9ce","name":"Gilbert Lopez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/04\/Gilbert-Lopez_avatar_1492457226-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2017\/04\/Gilbert-Lopez_avatar_1492457226-96x96.jpg","caption":"Gilbert Lopez"},"description":"Gilbert Lopez is an application developer and systems integration developer with experience building business solutions for large and medium-sized companies. He has worked on many Java EE projects. His roles have included lead developer, systems analyst, business analyst and consultant. Gilbert graduated from California State University in Los Angeles with a Bachelor of Science degree in Business.","sameAs":["https:\/\/www.javacodegeeks.com","https:\/\/www.linkedin.com\/in\/gilbertlopezdeveloper","https:\/\/x.com\/gillopez_dev"],"url":"https:\/\/examples.javacodegeeks.com\/author\/gilbert-lopez\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/60119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/121"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=60119"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/60119\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/27377"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=60119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=60119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=60119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}