<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Git on Naoufal Zerai</title><link>https://zerai.xyz/tags/git/</link><description>Recent content in Git on Naoufal Zerai</description><generator>Hugo</generator><language>en</language><copyright>&lt;a rel=license href=http://creativecommons.org/licenses/by-nc-sa/4.0/&gt;&lt;img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /&gt;&lt;/a&gt;&lt;br /&gt;This work is licensed under a &lt;a rel=license href=http://creativecommons.org/licenses/by-nc-sa/4.0/&gt;Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License&lt;/a&gt;.</copyright><lastBuildDate>Thu, 13 Aug 2026 14:55:00 -0400</lastBuildDate><atom:link href="https://zerai.xyz/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Git Tips</title><link>https://zerai.xyz/blog/git-tips/</link><pubDate>Mon, 22 Aug 2022 12:58:59 -0400</pubDate><guid>https://zerai.xyz/blog/git-tips/</guid><description>&lt;h1 id="gitignore-not-working"&gt;Gitignore not working&lt;a href="#gitignore-not-working" class="post-heading__anchor" aria-hidden="true"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;pre&gt;&lt;code&gt;git rm -rf --cached .
git add .
&lt;/code&gt;&lt;/pre&gt;
&lt;!-- more --&gt;
&lt;h1 id="recover-last-commit"&gt;Recover last commit&lt;a href="#recover-last-commit" class="post-heading__anchor" aria-hidden="true"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;pre&gt;&lt;code&gt;git reset HEAD~ 
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>