Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git remove folder from repository

# the -r option will recursively delete the folder
git rm -r folder-name
# commit changes
git commit -m "Remove duplicated directory"
Comment

remove folder from git repository

For root folder -> git rm -r myFolder 
For sub folder -> git rm -r publicmyFolder
git commit -m 'myFolder is deleted'
git push
Comment

delete folder from repo

git rm -r myFolder
Comment

delete folder from repo

git rm -r myfolder
git commit -m 'myFolder is deleted'
git push
Comment

How to remove a directory from git repository?

sql
git rm -r one-of-the-directories // This deletes from filesystem
git commit . -m "Remove duplicated directory"
git push origin <your-git-branch> (typically 'master', but not always)
Comment

PREVIOUS NEXT
Code Example
Shell :: expo app size 
Shell :: bash tar list of files from folder 
Shell :: uninstall django ubuntu 
Shell :: git asking for passphrase after restart 
Shell :: load .bashrc 
Shell :: linux kill all process of a user 
Shell :: git go back to commit 
Shell :: Remove a file from a Git repository without deleting it from the local 
Shell :: install kubectl windows 
Shell :: find exclude directories 
Shell :: copy file from server to local 
Shell :: change branch git 
Shell :: .bat script on computer startup 
Shell :: ssh list port forwards 
Shell :: virtualbox ubuntu 
Shell :: how to check wsl version 
Shell :: scp linux to mac 
Shell :: teams ubuntu 
Shell :: docker no pg_hba.conf entry for host SSL off 
Shell :: reset git file 
Shell :: debian 10 sources 
Shell :: npm install on Termux 
Shell :: bash get files older than 
Shell :: git flow release 
Shell :: how to show a tag in git 
Shell :: To exclude directory with particluar pattern : 
Shell :: nginx on ubuntu 
Shell :: if you cannot update any of the repositry in ubuntu 
Shell :: go install 
Shell :: bash find text in all csv files 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =