Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

remove and exclude folder in git for upcomming commits

#Ensure to have added the directory, if not:

git add FolderName

#Steps to remove directory

git rm --cached FolderName -r
git commit -m "Removed folder from repository"
git push origin master

#Steps to ignore that folder in next commits

#To ignore that folder from next commits make one file in root named .gitignore
#and put that folders name into it. You can put as many as you want
#.gitignore file will be look like this:

/FolderName

Comment

PREVIOUS NEXT
Code Example
Shell :: how to fill text when create file in ubuntu 
Shell :: git find largest files in repo 
Shell :: list of full path of file in text file ubuntu 
Shell :: command to install the fire-base tools 
Shell :: brownie list networks 
Shell :: bash script get value from piped input 
Shell :: nextcloud config.php location docker 
Shell :: how to change ssh key for git 
Shell :: how to install ubuntu on mac 
Shell :: ubuntu command to alt + f2 r 
Shell :: how to install ktouch in linux 
Shell :: arcmenu fix 
Shell :: how to run a code in github 
Shell :: install intel-gpu-tools 
Shell :: bash if user exists in a group then add 
Shell :: cut command in unix 
Shell :: aws codedeploy logs 
Shell :: xrandr 1600x900 
Shell :: NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory) 
Shell :: android studio create virtual device compatible with google play 
Shell :: git push command 
Shell :: how to set your github url ater cloning a repository 
Shell :: deleting a file inside a tar or zip file linux 
Shell :: anaconda install crispy-forms 
Shell :: download a github folder 
Shell :: wsl python image 
Shell :: kill a port in linux 
Shell :: powershell add line to text file 
Shell :: linux simple scan 
Shell :: sail command not found 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =