Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to remove a folder from git and not locally

# Remove folder from git and not local filesystem
git rm -r --cached FolderName
git commit -m "Removed folder from repository"
git push origin master

# After the push, make sure to add the folder to .gitignore for future iterations
Comment

PREVIOUS NEXT
Code Example
Shell :: bash return position of matching string 
Shell :: install tor browser on kali linux 
Shell :: awk skip first line 
Shell :: angular cli install ubuntu 
Shell :: compress file in terminal 
Shell :: ffmpeg take screenshot 
Shell :: laravel sqlite .env 
Shell :: how to find host name in linux 
Shell :: linux batch resize jpg 
Shell :: error install pyjnius in "chaquopy 
Shell :: bash get timestamp 
Shell :: ubuntu install jq 
Shell :: remove git tag 
Shell :: 7z e into folder linux 
Shell :: how to remove last migration in ef core 
Shell :: change permissions on all files in all sub-directories 
Shell :: why is gitlens not working on vscode 
Shell :: how to remove a file inside jar file in linux 
Shell :: hapus folder di linux 
Shell :: laravel generate random 6 digit number 
Shell :: fsl flirt 
Shell :: alpine linux /bin/sh: node: not found 
Shell :: restart sql server ubuntu 
Shell :: how to install deb package on manjaro 
Shell :: bash print lines that dont have a word 
Shell :: manjaro teamviewer 
Shell :: how to check hugo version 
Shell :: git remove cached directory 
Shell :: find text in files ubuntu 
Shell :: remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information. 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =