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:
<strong>🎬 Creating your first GitHub repo and pushing to it — takes 60 seconds.</strong>
274
-
<br />
275
-
<em>(Screencast coming soon!)</em>
276
-
</div>
277
-
</div>
278
-
279
264
To back up your code and collaborate with others, you'll want to push your project to GitHub. If you don't have a GitHub account yet, <ahref="https://github.com/signup"target="_blank"rel="noopener noreferrer"className="text-blue-600 underline">create one here</a>.
280
265
281
266
**Step-by-step:**
@@ -326,7 +311,9 @@ Git's history makes it easy to accidentally expose secrets, even if you later de
326
311
327
312
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
313
329
-
### Install Homebrew (macOS Only)
314
+
### Step 1. Install Homebrew (macOS Only)
315
+
316
+
<Imagesrc={homebrew}alt="Homebrew is a package manager for MacOSX and Linux" />
330
317
331
318
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
319
@@ -350,30 +337,25 @@ Below is a quick video walkthrough of the Homebrew installation process:
350
337
Your browser does not support the video tag.
351
338
</video>
352
339
353
-
**Next, install GitGuardian globally so it can protect all your projects by default:**
354
340
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.
356
-
357
-
```bash
358
-
ggshield install -m global
359
-
```
341
+
## Step 2. Install GitGuardian using Homebrew
360
342
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.*
343
+
Now that you have the Homebrew package manager installed, you can use it to install GitGuardian,
344
+
the tool that protects you from leaking secrets.
362
345
363
-
### Install GitGuardian
364
346
<Imagesrc={gitGuardian}alt="Git Guardian runs before your commit is even made" />
365
347
366
348
GitGuardian integrates with Git to automatically scan your code for secrets *before* you commit them.
367
349
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
350
**How to install GitGuardian's CLI (`ggshield`) with Homebrew:**
371
351
1. Open the terminal in Cursor
372
352
2. Paste and run this command:
373
353
```bash
374
354
brew install gitguardian/tap/ggshield
375
355
```
376
356
357
+
**Note: this one may take a while, especially if your connection is slow. Be patient and let it complete.**
358
+
377
359
Below is a quick video walkthrough of the installation process:
378
360
379
361
<video
@@ -394,13 +376,22 @@ When you try to commit:
394
376
2. GitGuardian scans the files you're trying to commit.
395
377
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.
380
+
381
+
## Step 3. install GitGuardian globally
398
382
399
-
### Test the Protection
383
+
GitGuardian can be installed globally. Globally means that it will run
384
+
ANY time you try to commit code in ANY project - **not just the project you're working in now**.
400
385
401
-
See GitGuardian in action!
386
+
This is the preferred way to install GitGuardian and I highly recommend it.
387
+
388
+
> 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.
389
+
390
+
```bash
391
+
ggshield install -m global
392
+
```
402
393
403
-
🎬 **[Screen Recording Needed]: Trying to commit a file containing a fake API key and showing how GitGuardian blocks it.**
394
+
*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
395
405
396
# Setting Up Cursor Rules for Safety and Mentorship
0 commit comments