<!DOCTYPE html> <html lang="en-us"> <head><script src="/livereload.js?mindelay=10&v=2&port=51237&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’ve all been there. You’ve added a file or folder to your <code>.gitignore</code>, but Git keeps tracking it anyway. What gives? Let’s dive into why this happens and how to fix it.</p> <h2 id="the-problem">The Problem</h2> <p>You’ve added a file or directory to your <code>.gitignore</code>, but Git still tracks it. You might be thinking, “Hey Git, I told you to ignore this!”</p> <h2 id="why-it-happens">Why It Happens</h2> <p>Here’s the catch: the <code>.gitignore</code> 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.</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>