Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git reload .gitignore file

Make changes in . gitignore file.
Run git rm -r --cached . command.
Run git add . command.
git commit -m "Commit message" or just git commit or continue working.
Comment

git refresh .gitignore

# NEVER run "git rm -r --cached .", it will reinitialize your whole project.
# just remove the destination file/folder instead of removing all folder and file.
# for example:
# 	if you recently adding "/public/js/app.js" in your .gitignore file,
#	just run "git rm -r --cached .publicjsapp.js", and then "git commit ..."
#	don't be a lazy people.
#
# trust me, i have a bad day after running "git rm -r --cached ." command.

git rm -r --cached .path	o<your_file.extension>
git commit -am "Commit Message"
Comment

PREVIOUS NEXT
Code Example
Shell :: install pecl on mac 
Shell :: where is my .git config mac 
Shell :: open port on linux 
Shell :: how to install .deb file on termux 
Shell :: wget typo3 9 
Shell :: how to screenshot ubuntu 20.04 
Shell :: nx remove lib 
Shell :: install bootstrap 4 with npm 
Shell :: install composer alpine docker 
Shell :: yarn test only one file 
Shell :: ubuntu bionic update security has sum mismatch 
Shell :: install saas 
Shell :: how to add a directory in path linux 
Shell :: bash remove first character 
Shell :: git copy branch to another branch 
Shell :: zsh: command not found: rvm 
Shell :: ubuntu show computer performance from terminal 
Shell :: locale-gen fa_IR.UTF-8 ubuntu 
Shell :: scss in gatsby 
Shell :: how to delete a word from a file in bash 
Shell :: linux how to give permission to folder forever 
Shell :: Do you want to accept these changes and continue updating from this repository? 
Shell :: desktop trigger click bash shell ubuntu 
Shell :: configuration file WSL2 to prevent consuming massive memory on your 
Shell :: check full memory details 
Shell :: docker build no cache layer dockerfile --no-cache "docker-compose" context 
Shell :: installing nodejs on fedora 
Shell :: files changed in a commit 
Shell :: how to make python + docx exe 
Shell :: xammp lubuntu 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =