Skip to content

Instantly share code, notes, and snippets.

@shaishab316
shaishab316 / Protect Main Branch.json
Last active September 15, 2026 07:24
Protect Main Branch
{
"name": "Protect Main Branch",
"target": "branch",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": ["~DEFAULT_BRANCH"]
}
@shaishab316
shaishab316 / git-tips-and-tricks.md
Last active November 20, 2025 03:51
A collection of useful Git commands and techniques to streamline your workflow, improve productivity, and enhance version control practices. This guide covers advanced features, troubleshooting tips, and lesser-known Git commands to help you work more efficiently with repositories, branches, commits, and remotes. Whether you're a beginner or an …

Git Tips and Tricks

Temporary Ignore a File

  1. Temporary Ignore a File:
    To ignore a file temporarily, use:
    git update-index --assume-unchanged <filename>
  2. Revert Temporary Ignore:
    To undo the ignore command and track the file again:
    git update-index --no-assume-unchanged <filename>
@shaishab316
shaishab316 / deploy-cheatsheet.md
Last active September 16, 2026 07:33
A step-by-step guide to deploy React frontend, Node.js backend, and Dashboard on a fresh VPS using NGINX reverse proxy, PM2 process manager, and free SSL via Certbot. Perfect for production-ready hosting with subdomains (api & dashboard) and automatic service startup.

🌐 Easy Hosting Guide on Vps (MEAN stack)

asciicast

✅ Step 0: Set Up Domain First

  1. Open your domain provider’s dashboard (e.g., Namecheap, GoDaddy, Cloudflare, Hostinger, Porkbun, etc.)
  2. Go to Domain List → DNS Zone
  3. Now observe: