<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Restaurer on kenji.blog</title><link>http://kenji.blog/fr/tags/restaurer/</link><description>Recent content in Restaurer on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>fr</language><copyright>kenjinote</copyright><lastBuildDate>Wed, 15 May 2024 23:32:43 +0900</lastBuildDate><atom:link href="http://kenji.blog/fr/tags/restaurer/index.xml" rel="self" type="application/rss+xml"/><item><title>Comment annuler un git reset</title><link>http://kenji.blog/fr/p/comment-annuler-un-git-reset/</link><pubDate>Wed, 15 May 2024 23:32:43 +0900</pubDate><guid>http://kenji.blog/fr/p/comment-annuler-un-git-reset/</guid><description>&lt;img src="http://kenji.blog/p/git-reset%E3%82%92%E5%8F%96%E3%82%8A%E6%B6%88%E3%81%99%E6%96%B9%E6%B3%95/img.png" alt="Featured image of post Comment annuler un git reset" />&lt;h1 id="comment-annuler-un-git-reset">Comment annuler un git reset
&lt;/h1>&lt;p>Après avoir effectué un git commit, si vous exécutez accidentellement un git reset, voici comment annuler le git reset (comment restaurer l&amp;rsquo;état au moment du git commit).&lt;/p>
&lt;ol>
&lt;li>Vérifiez l&amp;rsquo;ID du commit avant le reset avec &lt;code>git reflog&lt;/code>&lt;/li>
&lt;li>Revenez à l&amp;rsquo;état avant le reset avec &lt;code>git reset --hard HEAD@{numéro}&lt;/code>&lt;/li>
&lt;/ol>
&lt;p>C&amp;rsquo;est tout sur la façon d&amp;rsquo;annuler un git reset.&lt;/p></description></item></channel></rss>