You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/blog/vibe-coding-guide/page.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,4 +201,9 @@ Run `git add . && git commit -m "test"` to save your code.
201
201
<Linkhref="/products/vibe-coding-mastery">
202
202
203
203
</Link>
204
+
205
+
<divclassName="flex justify-center my-8">
206
+
<ShareButtonTrackedbuttonText="Share this guide"location="bottom" />
207
+
</div>
208
+
204
209
*Premium unlocks screencasts, exact commands, tools that auto-block leaks before they happen, and custom Cursor Rules to help you learn and protect you as you vibe code.*
Perfect — thanks for the schema. Here’s the corrected version of the metadata object using the contentSections array with properly structured title and subsections, accurately reflecting your guide’s TOC and flow:
Ready to drop in. Let me know if you’d like to add videoGallery or resourceLinks metadata fields next.
153
-
154
151
<Image
155
152
src={vibeCodingPremium}
156
153
alt="Vibe coding survival guide hero"
@@ -326,7 +323,9 @@ Git's history makes it easy to accidentally expose secrets, even if you later de
326
323
327
324
To prevent these accidents, you need a tool that integrates with Git and scans for secrets before they ever leave your machine. **GitGuardian** is purpose-built to catch these mistakes at commit time, blocking leaks before they happen.
328
325
329
-
### Install Homebrew (macOS Only)
326
+
### Step 1. Install Homebrew (macOS Only)
327
+
328
+
<Imagesrc={homebrew}alt="Homebrew is a package manager for MacOSX and Linux" />
330
329
331
330
Before you can install GitGuardian or many other developer tools, you'll want to set up [Homebrew](https://brew.sh)—the most popular package manager for macOS. Homebrew makes it much easier to install and manage software on your Mac.
332
331
@@ -350,30 +349,25 @@ Below is a quick video walkthrough of the Homebrew installation process:
350
349
Your browser does not support the video tag.
351
350
</video>
352
351
353
-
**Next, install GitGuardian globally so it can protect all your projects by default:**
354
352
355
-
> This step sets up GitGuardian's pre-commit protection for every repository on your machine, not just the current one. It's the recommended way to ensure you never accidentally leak secrets, even in new or cloned projects.
353
+
## Step 2. Install GitGuardian using Homebrew
356
354
357
-
```bash
358
-
ggshield install -m global
359
-
```
355
+
Now that you have the Homebrew package manager installed, you can use it to install GitGuardian,
356
+
the tool that protects you from leaking secrets.
360
357
361
-
*You'll see a confirmation message that GitGuardian's pre-commit hook is now active globally. From now on, every time you try to commit, your code will be scanned for secrets before anything leaves your computer.*
362
-
363
-
### Install GitGuardian
364
358
<Imagesrc={gitGuardian}alt="Git Guardian runs before your commit is even made" />
365
359
366
360
GitGuardian integrates with Git to automatically scan your code for secrets *before* you commit them.
367
361
368
-
Before you start pushing code to GitHub, it's smart to set up a tool that will catch any secrets you accidentally commit. [GitGuardian](https://www.gitguardian.com/) scans your code for API keys and other sensitive info before it ever leaves your machine.
369
-
370
362
**How to install GitGuardian's CLI (`ggshield`) with Homebrew:**
371
363
1. Open the terminal in Cursor
372
364
2. Paste and run this command:
373
365
```bash
374
366
brew install gitguardian/tap/ggshield
375
367
```
376
368
369
+
**Note: this one may take a while, especially if your connection is slow. Be patient and let it complete.**
370
+
377
371
Below is a quick video walkthrough of the installation process:
378
372
379
373
<video
@@ -394,13 +388,22 @@ When you try to commit:
394
388
2. GitGuardian scans the files you're trying to commit.
395
389
3. If it finds anything that looks like a secret (API key, password pattern, etc.), it blocks the commit and tells you exactly where the problem is.
GitGuardian is an excellent tool, and if used properly makes it **impossible** for you to leak secrets via Git.
392
+
393
+
## Step 3. install GitGuardian globally
394
+
395
+
GitGuardian can be installed globally. Globally means that it will run
396
+
ANY time you try to commit code in ANY project - **not just the project you're working in now**.
397
+
398
+
This is the preferred way to install GitGuardian and I highly recommend it.
398
399
399
-
### Test the Protection
400
+
> This step sets up GitGuardian's pre-commit protection for every repository on your machine, not just the current one. It's the recommended way to ensure you never accidentally leak secrets, even in new or cloned projects.
400
401
401
-
See GitGuardian in action!
402
+
```bash
403
+
ggshield install -m global
404
+
```
402
405
403
-
🎬 **[Screen Recording Needed]: Trying to commit a file containing a fake API key and showing how GitGuardian blocks it.**
406
+
*You'll see a confirmation message that GitGuardian's pre-commit hook is now active globally. From now on, every time you try to commit, your code will be scanned for secrets before anything leaves your computer!*
404
407
405
408
# Setting Up Cursor Rules for Safety and Mentorship
0 commit comments