Skip to content

Instantly share code, notes, and snippets.

View shaishab316's full-sized avatar
💼
OpenToWork

Shaishab Chandra Shil shaishab316

💼
OpenToWork
View GitHub Profile
@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 April 2, 2026 05:20
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)

✅ 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: 🔍 If there are old A records named @, api or dashboard 👉 Delete them first.