<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>git add Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/git-add/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/git-add/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:07:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to replace Changes after the Gerrit review without changing the commit id?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 12:17:20 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[amend]]></category>
		<category><![CDATA[Changes]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[git add]]></category>
		<category><![CDATA[git commit]]></category>
		<category><![CDATA[git push]]></category>
		<category><![CDATA[patchset]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5224</guid>

					<description><![CDATA[<p>How to replace Changes after the Gerrit review without changing the commit id? One of the main benefits of code [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/">How to replace Changes after the Gerrit review without changing the commit id?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-5291" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-5.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-5.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-5-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to replace Changes after the Gerrit review without changing the commit id?</strong></p>
<p>One of the main benefits of code review is the ability to receive and incorporate feedback from other developers without changing the commit-id and review id. With Gerrit, you incorporate these changes by amending the commit. Gerrit uses the CHange-Id to ensure that each iteration of the commit are stored together as patchsets.</p>
<p>The process of modify same commit and commit message on gerrit after patchset creation is pretty straight forward.</p>
<p><strong>Step 1 &#8211; Do the required modification in the code based on the review.</strong></p>
<p><strong>Step 2 &#8211; Add files using git add commands.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ git add filename</pre>
<p><strong>Step 3 &#8211; Command to update/amend the most recent commit.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ git commit --amend</pre>
<p>When amending a commit with git commit &#8211;amend, leave the Change-Id line unmodified in the commit message. This will allow Gerrit to automatically update the change with the amended commit.</p>
<p><strong>Step 4 &#8211; Gerrit updates the commit under review with your latest changes.</strong></p>
<pre class="brush: plain; title: ; notranslate">$ git push origin HEAD:refs/for/master
$ git push origin HEAD:refs/for/&#x5B;BRANCH_NAME]</pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/">How to replace Changes after the Gerrit review without changing the commit id?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-replace-changes-after-the-gerrit-review-without-changing-the-commit-id/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
