<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xml:base="https://bjorn.now/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Git on bjorn.now</title><link>https://bjorn.now/tags/git/</link><description>Recent content in Git on bjorn.now</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 01 Mar 2026 22:06:44 +0100</lastBuildDate><atom:link href="https://bjorn.now/tags/git/feed.xml" rel="self" type="application/rss+xml"/><item><title>git rm --cached &lt;file&gt; will remove from git but not from the filesystem</title><link>https://bjorn.now/til/2026-03-01-git-rm-cached-will-remove-something-from-git-but-not-the-filesystem/?utm_medium=feed</link><pubDate>Sun, 01 Mar 2026 22:06:44 +0100</pubDate><guid>https://bjorn.now/til/2026-03-01-git-rm-cached-will-remove-something-from-git-but-not-the-filesystem/</guid><description>git rm --cached &lt;file&gt; will remove a file from git’s tracking but leave it on the filesystem. Great if you accidentally commit something that should’ve been in .gitignore.</description><content:encoded><![CDATA[<p><code>git rm --cached &lt;file&gt;</code> will remove a file from git&rsquo;s tracking but leave it on the filesystem. Great if you accidentally commit something that should&rsquo;ve been in <code>.gitignore</code>.</p>
]]></content:encoded></item><item><title>You don't have to symlink git hooks, move the hooks folder to your scripts</title><link>https://bjorn.now/til/2026-02-26-you-can-move-gits-hook-folder/?utm_medium=feed</link><pubDate>Thu, 26 Feb 2026 14:35:58 +0100</pubDate><guid>https://bjorn.now/til/2026-02-26-you-can-move-gits-hook-folder/</guid><description>Use git config core.hooksPath script/hooks and it’ll use the scripts in script/hooks as hooks in the git project. Version controlled, and no need to update symlinks as scripts come and go.</description><content:encoded><![CDATA[<p>Use <code>git config core.hooksPath script/hooks</code> and it&rsquo;ll use the scripts in <code>script/hooks</code> as hooks in the git project. Version controlled, and no need to update symlinks as scripts come and go.</p>
<p>The way I have historically managed the hooks is by having a <code>script/bootstrap</code> that symlinks scripts, and then hopefully my team mates run bootstrap when something changes.</p>
<p>So this is a nice way of making that entire problem go away.</p>]]></content:encoded></item></channel></rss>