Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git stop tracking directory

	Step 1. Add the folder path to your repo's root .gitignore file.
path_to_your_folder/

	Step 2. Remove the folder from your local git tracking, but keep it on your disk.
git rm -r --cached path_to_your_folder/

	Step 3. Push your changes to your git repo.
    
// Taken from brilliant answer on 
// https://stackoverflow.com/questions/24290358/remove-a-folder-from-git-tracking
Comment

stop git from tracking a folder

git rm -r --cached path_to_your_folder/
Comment

PREVIOUS NEXT
Code Example
Shell :: 76 packages are looking for funding run `npm fund` for details found 7 vulnerabilities (5 low, 1 moderate, 1 high) run `npm audit fix` to fix them, or `npm audit` for details 
Shell :: certbot nginx certonly 
Shell :: comment in shell script 
Shell :: stop nginx server 
Shell :: How do I run multiple commands on one line in PowerShell? 
Shell :: appimage install kali linux 
Shell :: brew install mac 
Shell :: home brew mac 
Shell :: Count files and directories using shell script 
Shell :: grafana docker 
Shell :: ubuntu install brave 
Shell :: windows ssh tunnel 
Shell :: giving permission to folder in ubuntu 
Shell :: git checkout head 
Shell :: discord linux 
Shell :: change dns resolver linux 
Shell :: get additional parameters linux scripting 
Shell :: linux run command in background and redirect output to file 
Shell :: windows terminal open as admin 
Shell :: django install pathlib 
Shell :: how to run docker in ubuntu 
Shell :: install pytorch in jupyter notebook 
Shell :: get filename from path powershell 
Shell :: ufw deny from ip 
Shell :: node js TypeError [ERR_INVALID_ARG_TYPE]: The argument must be of type string. Received undefined 
Shell :: install packages from txt 
Shell :: how to stop a program from running linux 
Shell :: homebrew for windows 
Shell :: rsync only updated files 
Shell :: list dir by date linux 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =