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 :: bash for loop 
Shell :: scp from local to remote 
Shell :: update database syntaxn using nuget package 
Shell :: set java home in ubuntu 
Shell :: download office 365 for ubuntu 
Shell :: pytype 
Shell :: best code editor 
Shell :: brew cask specific version 
Shell :: bash arrays 
Shell :: how to start a background process in ubuntu 
Shell :: error when i install sass 
Shell :: xbox 360 wireless adapter linux 
Shell :: cron job 
Shell :: top linux 
Shell :: list file sizes 
Shell :: uninstall vmware player 
Shell :: list des group linux 
Shell :: git fetch upstream from master 
Shell :: react quill 
Shell :: deleting index.lock 
Shell :: expo uninstall package 
Shell :: install scrapy 
Shell :: install clamav terminal 
Shell :: redis quicstart 
Shell :: how to see what files are committed in git 
Shell :: how to revert to log in git 
Shell :: symfony Unable to write in the "logs" directory (/var/www/html/var/log). 
Shell :: command line argument bash 
Shell :: how to push to git hub 
Shell :: git clone assigning a different local branch name 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =