<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Correggere_un_commit_in_git</id>
	<title>Correggere un commit in git - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Correggere_un_commit_in_git"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Correggere_un_commit_in_git&amp;action=history"/>
	<updated>2026-05-05T23:58:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Correggere_un_commit_in_git&amp;diff=8259&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: Created page with &quot;*Se si sbaglia il messaggio di commit e lo si vuole correggere:  git commit --amend &quot;My fixed commit message&quot;  * Se si vuole aggiungere un file ad un commit già eseguito, o si v…&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Correggere_un_commit_in_git&amp;diff=8259&amp;oldid=prev"/>
		<updated>2012-01-11T13:09:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;*Se si sbaglia il messaggio di commit e lo si vuole correggere:  git commit --amend &amp;quot;My fixed commit message&amp;quot;  * Se si vuole aggiungere un file ad un commit già eseguito, o si v…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;*Se si sbaglia il messaggio di commit e lo si vuole correggere:&lt;br /&gt;
 git commit --amend &amp;quot;My fixed commit message&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Se si vuole aggiungere un file ad un commit già eseguito, o si vogliono inserire dei files modificati&lt;br /&gt;
 git add mynewfile&lt;br /&gt;
 git commit --amend &amp;quot;My fixed commit message&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Attenzione, però, che in questo caso si creano problemi per un push. Infatti se si tenta un push, si ottiene un errore.&lt;br /&gt;
Per poter continuare, fare prima un pull:&lt;br /&gt;
 git pull&lt;br /&gt;
Se non si riesce a fare il pull, controllare .git/config e verificare i branch etc ...&lt;br /&gt;
&lt;br /&gt;
Controllare, e poi fare il push&lt;br /&gt;
 git push&lt;br /&gt;
&lt;br /&gt;
==Riferimenti==&lt;br /&gt;
*[http://stackoverflow.com/questions/253055/how-do-i-push-amended-commit-to-the-remote-git-repo/1459351#1459351 version control - How do I push amended commit to the remote git repo? - Stack Overflow]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>