Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git update gitignore

git rm -r --cached .
git add .
git commit -m "update gitignore"
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 :: how to uninstall react native cli globally 
Shell :: expo fix dependencies 
Shell :: docker install nano 
Shell :: centos 7 apache restart 
Shell :: install dateutil 
Shell :: how to restart nginx 
Shell :: test angular lib with nx 
Shell :: git username email 
Shell :: install imutils 
Shell :: how to remove unnecessary packages in linux 
Shell :: kill ubuntu port 
Shell :: kill all docker processes force 
Shell :: install xdotool ubuntu 
Shell :: ubuntu tweak 
Shell :: conda install sklearn 
Shell :: cond install opencv 
Shell :: linux sort folders by size 
Shell :: yarn install windows 
Shell :: kill port linux 
Shell :: remove oh my zsh ubuntu 
Shell :: ubutnu install certbot 
Shell :: tmux for ubuntu 
Shell :: restart touch bar mac 
Shell :: yarn install ignore node version 
Shell :: turn on bluetooth ubuntu terminal 
Shell :: grafana cli restart 
Shell :: how to uninstall pycharm community edition in ubutu 
Shell :: Update chrome using terminal in linux 
Shell :: how to install viber on ubuntu 
Shell :: create react app typescript tailwind template 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =