Browse Source

Gitignore post

codeskraps 2 months ago
parent
commit
a54dcc98ee

+ 45 - 0
content/posts/gitignore_not_working.md

@@ -0,0 +1,45 @@
++++
+title = 'When .gitignore Doesnt Seem to Work: A Quick Fix'
+date = 2024-10-02T18:14:23+02:00
+tags = ['git']
+draft = false
++++
+As developers, we've all been there. You've added a file or folder to your `.gitignore`, but Git keeps tracking it anyway. What gives? Let's dive into why this happens and how to fix it.
+<!--more-->
+## The Problem
+
+You've added a file or directory to your `.gitignore`, but Git still tracks it. You might be thinking, "Hey Git, I told you to ignore this!"
+
+## Why It Happens
+
+Here's the catch: the `.gitignore` file only prevents untracked files from being added to the set of tracked files. It doesn't magically remove files that are already being tracked by Git.
+
+In other words, if you've previously committed a file and then add it to `.gitignore`, Git will continue to track changes to that file. It's like telling your dog to ignore the treat that's already in its mouth - it's too late!
+
+## The Solution
+
+Fear not! There's a simple (if somewhat counterintuitive) fix. Here's what you need to do:
+
+1. First, **commit all your current changes**. This is important to avoid losing any work.
+
+2. Then, run these two commands:
+
+   {{<highlight bash>}}
+   git rm -rf --cached .
+   git add .
+   {{</highlight>}}
+
+Let's break down what these commands do:
+
+- `git rm -rf --cached .`: This removes all files from the Git repository (but not from your working directory).
+- `git add .`: This adds all the files back to the repository.
+
+The magic here is that when you add the files back, Git will respect your `.gitignore` rules.
+
+## A Word of Caution
+
+Remember, this process will un-track files that you've told Git to ignore. If you want certain previously-tracked files to remain tracked, make sure they're not listed in your `.gitignore`.
+
+## Conclusion
+
+Git's behavior with `.gitignore` can be a bit surprising at first, but it makes sense when you understand how Git tracks files. By following these steps, you can ensure that your `.gitignore` rules are applied retroactively to your repository.

+ 0 - 10
content/posts/my-first-post.md

@@ -1,10 +0,0 @@
-+++
-title = 'My First Post'
-date = 2024-09-27T11:59:03+02:00
-draft = true
-+++
-## Introduction
-
-This is **bold** text, and this is *emphasized* text.
-
-Visit the [Hugo](https://gohugo.io) website!

+ 8 - 1
public/index.xml

@@ -8,7 +8,7 @@
     <language>en-us</language>
     <managingEditor>me@codeskraps.com (codeskraps)</managingEditor>
     <webMaster>me@codeskraps.com (codeskraps)</webMaster>
-    <lastBuildDate>Wed, 02 Oct 2024 16:56:53 +0200</lastBuildDate>
+    <lastBuildDate>Wed, 02 Oct 2024 18:14:23 +0200</lastBuildDate>
     <atom:link href="https://codeskraps.com/index.xml" rel="self" type="application/rss+xml" />
     <item>
       <title>About Me</title>
@@ -17,6 +17,13 @@
       <guid>https://codeskraps.com/about/</guid>
       <description>&lt;p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;  &#xA;  &#xA;  &#xA;      &#xA;      &#xA;  &lt;picture&gt;&#xA;  &lt;img class=&#34;img-fluid&#34; src=&#34;https://codeskraps.com/images/me_codeskraps.gif?v=9df9e0930034eb1e10990a99d3ef1056&#34; alt=&#34;me&#34; loading=&#34;lazy&#34; height=&#34;107&#34; width=&#34;150&#34; /&gt;&#xA;&lt;/picture&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m a passionate and highly motivated software engineer with a deep-rooted love for technology that dates back to my first computer, an Amstrad 8256. From those early days of programming as a hobby, I&amp;rsquo;ve turned my passion into a successful career, specializing in mobile development with a focus on Android.&lt;/p&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;h2 id=&#34;professional-journey&#34;&gt;Professional Journey&lt;/h2&gt;&#xA;&lt;p&gt;Currently, I&amp;rsquo;m leading the mobile team at Game Golf, where I oversee all aspects of our mobile app development. My experience spans various domains, including:&lt;/p&gt;</description>
     </item>
+    <item>
+      <title>When .gitignore Doesnt Seem to Work: A Quick Fix</title>
+      <link>https://codeskraps.com/posts/gitignore_not_working/</link>
+      <pubDate>Wed, 02 Oct 2024 18:14:23 +0200</pubDate><author>me@codeskraps.com (codeskraps)</author>
+      <guid>https://codeskraps.com/posts/gitignore_not_working/</guid>
+      <description>&lt;p&gt;As developers, we&amp;rsquo;ve all been there. You&amp;rsquo;ve added a file or folder to your &lt;code&gt;.gitignore&lt;/code&gt;, but Git keeps tracking it anyway. What gives? Let&amp;rsquo;s dive into why this happens and how to fix it.&lt;/p&gt;</description>
+    </item>
     <item>
       <title>Configuring SSH Keys for Individual Git Commands</title>
       <link>https://codeskraps.com/posts/git_ssh_command/</link>

+ 139 - 0
public/post/gitignore_not_working/index.html

@@ -0,0 +1,139 @@
+<!DOCTYPE html>
+<html lang="en-us">
+
+<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=51237&amp;path=livereload" data-no-instant defer></script>
+    <title>
+When .gitignore Doesnt Seem to Work: A Quick Fix | codeskraps
+</title>
+
+    <meta http-equiv="content-type" content="text/html; charset=utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="description" content="Your website description">
+
+<meta name="generator" content="Hugo 0.134.3">
+
+
+<link rel="canonical" href="http://localhost:51237/post/gitignore_not_working/" >
+
+
+
+
+<link href="/css/style.min.ee0d47e4d4346c71a65a9e873108c81ffae54d60a2fc2338f6df394eb4b25a82.css" rel="stylesheet">
+
+
+
+
+</head>
+
+<body>
+
+    <div class="flexWrapper">
+        <header class="headerWrapper">
+    <div class="header">
+        <div>
+            <a class="terminal" href="http://localhost:51237/">
+                <span>me@codeskraps.com ~ $</span>
+            </a>
+        </div>
+        <input class="side-menu" type="checkbox" id="side-menu">
+        <label class="hamb" for="side-menu"><span class="hamb-line"></span></label>
+        <nav class="headerLinks">
+            <ul>
+                
+                <li>
+                    <a href="http://localhost:51237/projects/" title="" >
+                        ~/projects</a>
+                </li>
+                
+                <li>
+                    <a href="http://localhost:51237/about/" title="" >
+                        ~/about</a>
+                </li>
+                
+                <li>
+                    <a href="http://localhost:51237/posts/" title="" >
+                        ~/posts</a>
+                </li>
+                
+            </ul>
+        </nav>
+    </div>
+</header>
+
+
+        <div class="content">
+            <main class="main">
+                
+<div class="postWrapper">
+    <h1>When .gitignore Doesnt Seem to Work: A Quick Fix</h1>
+    
+    
+    <section class="postMetadata">
+        <dl>
+            
+                
+<dt>tags</dt>
+<dd><span></span>
+    <a href="/tags/git/">#Git</a></dd>
+            
+            
+            
+            
+                <dt>published</dt>
+                
+                <dd><time datetime="2024-10-02">October 2, 2024</time></dd>
+            
+            
+                <dt>reading time</dt>
+                <dd>2 minutes</dd>
+            
+        </dl>
+    </section>
+    
+    <div>
+        <p>As developers, we&rsquo;ve all been there. You&rsquo;ve added a file or folder to your <code>.gitignore</code>, but Git keeps tracking it anyway. What gives? Let&rsquo;s dive into why this happens and how to fix it.</p>
+<h2 id="the-problem">The Problem</h2>
+<p>You&rsquo;ve added a file or directory to your <code>.gitignore</code>, but Git still tracks it. You might be thinking, &ldquo;Hey Git, I told you to ignore this!&rdquo;</p>
+<h2 id="why-it-happens">Why It Happens</h2>
+<p>Here&rsquo;s the catch: the <code>.gitignore</code> file only prevents untracked files from being added to the set of tracked files. It doesn&rsquo;t magically remove files that are already being tracked by Git.</p>
+<p>In other words, if you&rsquo;ve previously committed a file and then add it to <code>.gitignore</code>, Git will continue to track changes to that file. It&rsquo;s like telling your dog to ignore the treat that&rsquo;s already in its mouth - it&rsquo;s too late!</p>
+<h2 id="the-solution">The Solution</h2>
+<p>Fear not! There&rsquo;s a simple (if somewhat counterintuitive) fix. Here&rsquo;s what you need to do:</p>
+<ol>
+<li>
+<p>First, <strong>commit all your current changes</strong>. This is important to avoid losing any work.</p>
+</li>
+<li>
+<p>Then, run these two commands:</p>
+<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>git rm -rf --cached .
+</span></span><span style="display:flex;"><span>git add .</span></span></code></pre></div>
+</li>
+</ol>
+<p>Let&rsquo;s break down what these commands do:</p>
+<ul>
+<li><code>git rm -rf --cached .</code>: This removes all files from the Git repository (but not from your working directory).</li>
+<li><code>git add .</code>: This adds all the files back to the repository.</li>
+</ul>
+<p>The magic here is that when you add the files back, Git will respect your <code>.gitignore</code> rules.</p>
+<h2 id="a-word-of-caution">A Word of Caution</h2>
+<p>Remember, this process will un-track files that you&rsquo;ve told Git to ignore. If you want certain previously-tracked files to remain tracked, make sure they&rsquo;re not listed in your <code>.gitignore</code>.</p>
+<h2 id="conclusion">Conclusion</h2>
+<p>Git&rsquo;s behavior with <code>.gitignore</code> can be a bit surprising at first, but it makes sense when you understand how Git tracks files. By following these steps, you can ensure that your <code>.gitignore</code> rules are applied retroactively to your repository.</p>
+
+    </div>
+</div>
+
+            </main>
+        </div>
+
+
+        <footer class="footer">
+    
+        <span>Built with <a href="https://gohugo.io" class="footerLink">Hugo</a> and <a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink">Nightfall</a> theme</span>
+    
+</footer>
+    </div>
+
+</body>
+
+</html>

+ 117 - 0
public/post/index.html

@@ -0,0 +1,117 @@
+<!DOCTYPE html>
+<html lang="en-us">
+
+<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=51237&amp;path=livereload" data-no-instant defer></script>
+    <title>
+Posts | codeskraps
+</title>
+
+    <meta http-equiv="content-type" content="text/html; charset=utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="description" content="Your website description">
+
+<meta name="generator" content="Hugo 0.134.3">
+
+
+<link rel="canonical" href="http://localhost:51237/post/" >
+  <link href="http://localhost:51237/post/index.xml" rel="alternate" type="application/rss+xml" title="codeskraps" >
+  <link href="http://localhost:51237/post/index.xml" rel="feed" type="application/rss+xml" title="codeskraps" >
+
+
+
+
+<link href="/css/style.min.ee0d47e4d4346c71a65a9e873108c81ffae54d60a2fc2338f6df394eb4b25a82.css" rel="stylesheet">
+
+
+
+
+</head>
+
+<body>
+
+    <div class="flexWrapper">
+        <header class="headerWrapper">
+    <div class="header">
+        <div>
+            <a class="terminal" href="http://localhost:51237/">
+                <span>me@codeskraps.com ~ $</span>
+            </a>
+        </div>
+        <input class="side-menu" type="checkbox" id="side-menu">
+        <label class="hamb" for="side-menu"><span class="hamb-line"></span></label>
+        <nav class="headerLinks">
+            <ul>
+                
+                <li>
+                    <a href="http://localhost:51237/projects/" title="" >
+                        ~/projects</a>
+                </li>
+                
+                <li>
+                    <a href="http://localhost:51237/about/" title="" >
+                        ~/about</a>
+                </li>
+                
+                <li>
+                    <a href="http://localhost:51237/posts/" title="" >
+                        ~/posts</a>
+                </li>
+                
+            </ul>
+        </nav>
+    </div>
+</header>
+
+
+        <div class="content">
+            <main class="main">
+                
+
+<div>
+    <div class="listHeader">
+        <h1>Posts</h1>
+    </div>
+
+    
+
+    <div>
+        
+
+        <a class="postListLink" href="http://localhost:51237/post/gitignore_not_working/">
+            
+            <div class="postListItem" role="listitem">
+                <div class="postHeader">
+                    <span class="postTitle">When .gitignore Doesnt Seem to Work: A Quick Fix</span>
+                    
+                    <time class="postDate" datetime="2024-10-02">October 2, 2024</time>
+                </div>
+                <div class="postExcerpt">
+                    <p><p>As developers, we&rsquo;ve all been there. You&rsquo;ve added a file or folder to your <code>.gitignore</code>, but Git keeps tracking it anyway. What gives? Let&rsquo;s dive into why this happens and how to fix it.</p>
+<h2 id="the-problem">The Problem</h2>
+<p>You&rsquo;ve added a file or directory to your <code>.gitignore</code>, but Git still tracks it. You might be thinking, &ldquo;Hey Git, I told you to ignore this!&rdquo;</p>
+<h2 id="why-it-happens">Why It Happens</h2>
+<p>Here&rsquo;s the catch: the <code>.gitignore</code> file only prevents untracked files from being added to the set of tracked files. It doesn&rsquo;t magically remove files that are already being tracked by Git.</p></p>
+                </div>
+            </div>
+        </a>
+
+
+        
+    </div>
+</div>
+
+
+            </main>
+        </div>
+
+
+        <footer class="footer">
+    
+        <span>Built with <a href="https://gohugo.io" class="footerLink">Hugo</a> and <a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink">Nightfall</a> theme</span>
+    
+</footer>
+    </div>
+
+</body>
+
+</html>

+ 21 - 0
public/post/index.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+  <channel>
+    <title>Posts on codeskraps</title>
+    <link>http://localhost:51237/post/</link>
+    <description>Recent content in Posts on codeskraps</description>
+    <generator>Hugo</generator>
+    <language>en-us</language>
+    <managingEditor>me@codeskraps.com (codeskraps)</managingEditor>
+    <webMaster>me@codeskraps.com (codeskraps)</webMaster>
+    <lastBuildDate>Wed, 02 Oct 2024 18:14:23 +0200</lastBuildDate>
+    <atom:link href="http://localhost:51237/post/index.xml" rel="self" type="application/rss+xml" />
+    <item>
+      <title>When .gitignore Doesnt Seem to Work: A Quick Fix</title>
+      <link>http://localhost:51237/post/gitignore_not_working/</link>
+      <pubDate>Wed, 02 Oct 2024 18:14:23 +0200</pubDate><author>me@codeskraps.com (codeskraps)</author>
+      <guid>http://localhost:51237/post/gitignore_not_working/</guid>
+      <description>&lt;p&gt;As developers, we&amp;rsquo;ve all been there. You&amp;rsquo;ve added a file or folder to your &lt;code&gt;.gitignore&lt;/code&gt;, but Git keeps tracking it anyway. What gives? Let&amp;rsquo;s dive into why this happens and how to fix it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-problem&#34;&gt;The Problem&lt;/h2&gt;&#xA;&lt;p&gt;You&amp;rsquo;ve added a file or directory to your &lt;code&gt;.gitignore&lt;/code&gt;, but Git still tracks it. You might be thinking, &amp;ldquo;Hey Git, I told you to ignore this!&amp;rdquo;&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-it-happens&#34;&gt;Why It Happens&lt;/h2&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s the catch: the &lt;code&gt;.gitignore&lt;/code&gt; file only prevents untracked files from being added to the set of tracked files. It doesn&amp;rsquo;t magically remove files that are already being tracked by Git.&lt;/p&gt;</description>
+    </item>
+  </channel>
+</rss>

+ 138 - 0
public/posts/gitignore_not_working/index.html

@@ -0,0 +1,138 @@
+<!DOCTYPE html>
+<html lang="en-us">
+
+<head>
+    <title>
+When .gitignore Doesnt Seem to Work: A Quick Fix | codeskraps
+</title>
+
+    <meta http-equiv="content-type" content="text/html; charset=utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="description" content="Your website description">
+
+<meta name="generator" content="Hugo 0.134.3">
+
+
+<link rel="canonical" href="https://codeskraps.com/posts/gitignore_not_working/" >
+
+
+
+
+<link href="/css/style.min.ee0d47e4d4346c71a65a9e873108c81ffae54d60a2fc2338f6df394eb4b25a82.css" rel="stylesheet">
+
+
+
+
+</head>
+
+<body>
+
+    <div class="flexWrapper">
+        <header class="headerWrapper">
+    <div class="header">
+        <div>
+            <a class="terminal" href="https://codeskraps.com/">
+                <span>me@codeskraps.com ~ $</span>
+            </a>
+        </div>
+        <input class="side-menu" type="checkbox" id="side-menu">
+        <label class="hamb" for="side-menu"><span class="hamb-line"></span></label>
+        <nav class="headerLinks">
+            <ul>
+                
+                <li>
+                    <a href="https://codeskraps.com/projects/" title="" >
+                        ~/projects</a>
+                </li>
+                
+                <li>
+                    <a href="https://codeskraps.com/about/" title="" >
+                        ~/about</a>
+                </li>
+                
+                <li>
+                    <a href="https://codeskraps.com/posts/" title="" >
+                        ~/posts</a>
+                </li>
+                
+            </ul>
+        </nav>
+    </div>
+</header>
+
+
+        <div class="content">
+            <main class="main">
+                
+<div class="postWrapper">
+    <h1>When .gitignore Doesnt Seem to Work: A Quick Fix</h1>
+    
+    
+    <section class="postMetadata">
+        <dl>
+            
+                
+<dt>tags</dt>
+<dd><span></span>
+    <a href="/tags/git/">#Git</a></dd>
+            
+            
+            
+            
+                <dt>published</dt>
+                
+                <dd><time datetime="2024-10-02">October 2, 2024</time></dd>
+            
+            
+                <dt>reading time</dt>
+                <dd>2 minutes</dd>
+            
+        </dl>
+    </section>
+    
+    <div>
+        <p>As developers, we&rsquo;ve all been there. You&rsquo;ve added a file or folder to your <code>.gitignore</code>, but Git keeps tracking it anyway. What gives? Let&rsquo;s dive into why this happens and how to fix it.</p>
+<h2 id="the-problem">The Problem</h2>
+<p>You&rsquo;ve added a file or directory to your <code>.gitignore</code>, but Git still tracks it. You might be thinking, &ldquo;Hey Git, I told you to ignore this!&rdquo;</p>
+<h2 id="why-it-happens">Why It Happens</h2>
+<p>Here&rsquo;s the catch: the <code>.gitignore</code> file only prevents untracked files from being added to the set of tracked files. It doesn&rsquo;t magically remove files that are already being tracked by Git.</p>
+<p>In other words, if you&rsquo;ve previously committed a file and then add it to <code>.gitignore</code>, Git will continue to track changes to that file. It&rsquo;s like telling your dog to ignore the treat that&rsquo;s already in its mouth - it&rsquo;s too late!</p>
+<h2 id="the-solution">The Solution</h2>
+<p>Fear not! There&rsquo;s a simple (if somewhat counterintuitive) fix. Here&rsquo;s what you need to do:</p>
+<ol>
+<li>
+<p>First, <strong>commit all your current changes</strong>. This is important to avoid losing any work.</p>
+</li>
+<li>
+<p>Then, run these two commands:</p>
+<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>git rm -rf --cached .
+</span></span><span style="display:flex;"><span>git add .</span></span></code></pre></div>
+</li>
+</ol>
+<p>Let&rsquo;s break down what these commands do:</p>
+<ul>
+<li><code>git rm -rf --cached .</code>: This removes all files from the Git repository (but not from your working directory).</li>
+<li><code>git add .</code>: This adds all the files back to the repository.</li>
+</ul>
+<p>The magic here is that when you add the files back, Git will respect your <code>.gitignore</code> rules.</p>
+<h2 id="a-word-of-caution">A Word of Caution</h2>
+<p>Remember, this process will un-track files that you&rsquo;ve told Git to ignore. If you want certain previously-tracked files to remain tracked, make sure they&rsquo;re not listed in your <code>.gitignore</code>.</p>
+<h2 id="conclusion">Conclusion</h2>
+<p>Git&rsquo;s behavior with <code>.gitignore</code> can be a bit surprising at first, but it makes sense when you understand how Git tracks files. By following these steps, you can ensure that your <code>.gitignore</code> rules are applied retroactively to your repository.</p>
+    </div>
+</div>
+
+            </main>
+        </div>
+
+
+        <footer class="footer">
+    
+        <span>Built with <a href="https://gohugo.io" class="footerLink">Hugo</a> and <a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink">Nightfall</a> theme</span>
+    
+</footer>
+    </div>
+
+</body>
+
+</html>

+ 17 - 0
public/posts/index.html

@@ -77,6 +77,23 @@ Posts | codeskraps
     <div>
         
 
+        <a class="postListLink" href="https://codeskraps.com/posts/gitignore_not_working/">
+            
+            <div class="postListItem" role="listitem">
+                <div class="postHeader">
+                    <span class="postTitle">When .gitignore Doesnt Seem to Work: A Quick Fix</span>
+                    
+                    <time class="postDate" datetime="2024-10-02">October 2, 2024</time>
+                </div>
+                <div class="postExcerpt">
+                    <p><p>As developers, we&rsquo;ve all been there. You&rsquo;ve added a file or folder to your <code>.gitignore</code>, but Git keeps tracking it anyway. What gives? Let&rsquo;s dive into why this happens and how to fix it.</p></p>
+                </div>
+            </div>
+        </a>
+
+
+        
+
         <a class="postListLink" href="https://codeskraps.com/posts/git_ssh_command/">
             
             <div class="postListItem" role="listitem">

+ 8 - 1
public/posts/index.xml

@@ -8,8 +8,15 @@
     <language>en-us</language>
     <managingEditor>me@codeskraps.com (codeskraps)</managingEditor>
     <webMaster>me@codeskraps.com (codeskraps)</webMaster>
-    <lastBuildDate>Wed, 02 Oct 2024 16:56:53 +0200</lastBuildDate>
+    <lastBuildDate>Wed, 02 Oct 2024 18:14:23 +0200</lastBuildDate>
     <atom:link href="https://codeskraps.com/posts/index.xml" rel="self" type="application/rss+xml" />
+    <item>
+      <title>When .gitignore Doesnt Seem to Work: A Quick Fix</title>
+      <link>https://codeskraps.com/posts/gitignore_not_working/</link>
+      <pubDate>Wed, 02 Oct 2024 18:14:23 +0200</pubDate><author>me@codeskraps.com (codeskraps)</author>
+      <guid>https://codeskraps.com/posts/gitignore_not_working/</guid>
+      <description>&lt;p&gt;As developers, we&amp;rsquo;ve all been there. You&amp;rsquo;ve added a file or folder to your &lt;code&gt;.gitignore&lt;/code&gt;, but Git keeps tracking it anyway. What gives? Let&amp;rsquo;s dive into why this happens and how to fix it.&lt;/p&gt;</description>
+    </item>
     <item>
       <title>Configuring SSH Keys for Individual Git Commands</title>
       <link>https://codeskraps.com/posts/git_ssh_command/</link>

+ 6 - 6
public/posts/my-first-post/index.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en-us">
 
-<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=49193&amp;path=livereload" data-no-instant defer></script>
+<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=51237&amp;path=livereload" data-no-instant defer></script>
     <title>
 My First Post | codeskraps
 </title>
@@ -13,7 +13,7 @@ My First Post | codeskraps
 <meta name="generator" content="Hugo 0.134.3">
 
 
-<link rel="canonical" href="http://localhost:49193/posts/my-first-post/" >
+<link rel="canonical" href="http://localhost:51237/posts/my-first-post/" >
 
 
 
@@ -31,7 +31,7 @@ My First Post | codeskraps
         <header class="headerWrapper">
     <div class="header">
         <div>
-            <a class="terminal" href="http://localhost:49193/">
+            <a class="terminal" href="http://localhost:51237/">
                 <span>me@codeskraps.com ~ $</span>
             </a>
         </div>
@@ -41,17 +41,17 @@ My First Post | codeskraps
             <ul>
                 
                 <li>
-                    <a href="http://localhost:49193/projects/" title="" >
+                    <a href="http://localhost:51237/projects/" title="" >
                         ~/projects</a>
                 </li>
                 
                 <li>
-                    <a href="http://localhost:49193/about/" title="" >
+                    <a href="http://localhost:51237/about/" title="" >
                         ~/about</a>
                 </li>
                 
                 <li>
-                    <a href="http://localhost:49193/posts/" title="" >
+                    <a href="http://localhost:51237/posts/" title="" >
                         ~/posts</a>
                 </li>
                 

+ 11 - 8
public/sitemap.xml

@@ -5,21 +5,24 @@
     <loc>https://codeskraps.com/about/</loc>
   </url><url>
     <loc>https://codeskraps.com/</loc>
-    <lastmod>2024-10-02T16:56:53+02:00</lastmod>
-  </url><url>
-    <loc>https://codeskraps.com/posts/git_ssh_command/</loc>
-    <lastmod>2024-10-02T16:56:53+02:00</lastmod>
+    <lastmod>2024-10-02T18:14:23+02:00</lastmod>
   </url><url>
     <loc>https://codeskraps.com/tags/git/</loc>
-    <lastmod>2024-10-02T16:56:53+02:00</lastmod>
+    <lastmod>2024-10-02T18:14:23+02:00</lastmod>
   </url><url>
     <loc>https://codeskraps.com/posts/</loc>
-    <lastmod>2024-10-02T16:56:53+02:00</lastmod>
+    <lastmod>2024-10-02T18:14:23+02:00</lastmod>
   </url><url>
-    <loc>https://codeskraps.com/tags/ssh/</loc>
+    <loc>https://codeskraps.com/tags/</loc>
+    <lastmod>2024-10-02T18:14:23+02:00</lastmod>
+  </url><url>
+    <loc>https://codeskraps.com/posts/gitignore_not_working/</loc>
+    <lastmod>2024-10-02T18:14:23+02:00</lastmod>
+  </url><url>
+    <loc>https://codeskraps.com/posts/git_ssh_command/</loc>
     <lastmod>2024-10-02T16:56:53+02:00</lastmod>
   </url><url>
-    <loc>https://codeskraps.com/tags/</loc>
+    <loc>https://codeskraps.com/tags/ssh/</loc>
     <lastmod>2024-10-02T16:56:53+02:00</lastmod>
   </url><url>
     <loc>https://codeskraps.com/tags/android/</loc>

+ 17 - 0
public/tags/git/index.html

@@ -77,6 +77,23 @@ Git | codeskraps
     <div>
         
 
+        <a class="postListLink" href="https://codeskraps.com/posts/gitignore_not_working/">
+            
+            <div class="postListItem" role="listitem">
+                <div class="postHeader">
+                    <span class="postTitle">When .gitignore Doesnt Seem to Work: A Quick Fix</span>
+                    
+                    <time class="postDate" datetime="2024-10-02">October 2, 2024</time>
+                </div>
+                <div class="postExcerpt">
+                    <p><p>As developers, we&rsquo;ve all been there. You&rsquo;ve added a file or folder to your <code>.gitignore</code>, but Git keeps tracking it anyway. What gives? Let&rsquo;s dive into why this happens and how to fix it.</p></p>
+                </div>
+            </div>
+        </a>
+
+
+        
+
         <a class="postListLink" href="https://codeskraps.com/posts/git_ssh_command/">
             
             <div class="postListItem" role="listitem">

+ 8 - 1
public/tags/git/index.xml

@@ -8,8 +8,15 @@
     <language>en-us</language>
     <managingEditor>me@codeskraps.com (codeskraps)</managingEditor>
     <webMaster>me@codeskraps.com (codeskraps)</webMaster>
-    <lastBuildDate>Wed, 02 Oct 2024 16:56:53 +0200</lastBuildDate>
+    <lastBuildDate>Wed, 02 Oct 2024 18:14:23 +0200</lastBuildDate>
     <atom:link href="https://codeskraps.com/tags/git/index.xml" rel="self" type="application/rss+xml" />
+    <item>
+      <title>When .gitignore Doesnt Seem to Work: A Quick Fix</title>
+      <link>https://codeskraps.com/posts/gitignore_not_working/</link>
+      <pubDate>Wed, 02 Oct 2024 18:14:23 +0200</pubDate><author>me@codeskraps.com (codeskraps)</author>
+      <guid>https://codeskraps.com/posts/gitignore_not_working/</guid>
+      <description>&lt;p&gt;As developers, we&amp;rsquo;ve all been there. You&amp;rsquo;ve added a file or folder to your &lt;code&gt;.gitignore&lt;/code&gt;, but Git keeps tracking it anyway. What gives? Let&amp;rsquo;s dive into why this happens and how to fix it.&lt;/p&gt;</description>
+    </item>
     <item>
       <title>Configuring SSH Keys for Individual Git Commands</title>
       <link>https://codeskraps.com/posts/git_ssh_command/</link>

+ 2 - 2
public/tags/index.xml

@@ -8,12 +8,12 @@
     <language>en-us</language>
     <managingEditor>me@codeskraps.com (codeskraps)</managingEditor>
     <webMaster>me@codeskraps.com (codeskraps)</webMaster>
-    <lastBuildDate>Wed, 02 Oct 2024 16:56:53 +0200</lastBuildDate>
+    <lastBuildDate>Wed, 02 Oct 2024 18:14:23 +0200</lastBuildDate>
     <atom:link href="https://codeskraps.com/tags/index.xml" rel="self" type="application/rss+xml" />
     <item>
       <title>Git</title>
       <link>https://codeskraps.com/tags/git/</link>
-      <pubDate>Wed, 02 Oct 2024 16:56:53 +0200</pubDate><author>me@codeskraps.com (codeskraps)</author>
+      <pubDate>Wed, 02 Oct 2024 18:14:23 +0200</pubDate><author>me@codeskraps.com (codeskraps)</author>
       <guid>https://codeskraps.com/tags/git/</guid>
       <description></description>
     </item>