Skip to content

Repositories, Staging, Commits

Create or Clone

Create a new local repo:

mkdir security-notes
cd security-notes
git init

Clone an existing repo:

git clone https://github.com/user/repo.git

Stage Intentionally

Use git status and git diff before committing:

git status
git diff
git add README.md
git diff --staged
git commit -m "Add lab overview"

Staging intentionally is important in cybersecurity because one folder may contain both safe notes and sensitive artifacts.

Good Commit Messages

Strong messages are short, specific, and action-oriented:

Add SSH hardening checklist
Document Nmap scan methodology
Fix Sigma rule false positive note

Avoid vague messages such as updates, stuff, or final.