How to remove local (untracked) files from the current Git working tree

How to remove local (untracked) files from the current Git working tree

GIT

Git clean and git stash for the rescue. Git cheat sheet & basic workflow Use git clean with caution (always use -n dry run mode) Always use -n before running the clean command as it will show you what files would get removed. -d Normally, when...
Blog
DevWL

Search posts

Categories

  • * (12)
  • Admin (4)
  • Algorithms (3)
  • Bash (4)
  • Cache (1)
  • cPanel (2)
  • CSS (5)
  • Data structure (1)
  • database (3)
  • Design Patterns (1)
  • DevOps (7)
  • DirectAdmin (1)
  • Divi (4)
  • Docker (15)
  • Error fix (1)
  • Express (1)
  • Frameworks (1)
  • GIT (7)
  • Good Practice (1)
  • Hosting (3)
  • HTML (4)
  • IT (70)
  • IT Help Desk (26)
  • JavaScript (9)
  • Kubernetes (4)
  • Laragon (6)
  • Linux (11)
  • Linux CLI (4)
  • Mac (1)
  • MariaDB (1)
  • Migration (1)
  • MongoDB (2)
  • MSQL (13)
  • mysql (11)
  • Networking (4)
  • NginX (1)
  • NoSQL (2)
  • PhotoShop (1)
  • PHP (30)
  • PHP fame of glory (1)
  • PHP tools (3)
  • PrestaShop (9)
  • Programming (1)
  • Project Management (1)
  • REGEX (4)
  • REST API (1)
  • SASS (1)
  • Server www (1)
  • software (1)
  • SQL (16)
  • Standards (2)
  • structure (1)
  • Symfony (1)
  • Symfony 4 (1)
  • Symfony 5 (1)
  • Tools (1)
  • Tools-JS (1)
  • Ubuntu (1)
  • UML (1)
  • UML Class Diagram (1)
  • VPS (1)
  • WebDesign (1)
  • WebDevelopment (13)
  • WebPack (1)
  • Windows (6)
  • Windows 10 ENV (4)
  • WooCommerce (10)
  • WordPress (40)
  • WSL/WSL2 (2)

Recent Posts

  • How to protect PHP source Code?
  • VPS DirectAdmin running out of space
  • Auto tagging in Google Ads
  • PHP-apache image – How to change php.ini settings in docker container with Dockerfile.
  • Best programming fonts? CaskaydiaCove NF vs Fira Code.
  • PrestaShop plugin / widget development – Setting up development environment for PrestaShop with docker.
  • Storing password in git?
  • Docker PHP 2022
  • Mounting a Windows network drive on WLS
  • How to verify file signature?
  • Windows 10/11 – Copy & Replace only new or modified files. Skip same/unchanged files.
  • PrestaShop Database
  • Docker setup MySQL with phpMyAdmin on Windows10/11
  • API documentation platforms
  • Automatic file