Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git update gitignore

git rm -r --cached .
git add .
git commit -m "update gitignore"
Comment

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 update .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 :: start stop restart pm2 
Shell :: read the file from shell 
Shell :: start mongodb ubuntu 
Shell :: ffmpeg install ubuntu 
Shell :: bash store pipe output in variable 
Shell :: import single table from mysql dump 
Shell :: best code editors 2022 
Shell :: linux command to open a file 
Shell :: how to delete all history for specific search term in chrome 
Shell :: where is ubuntu installed in windows 10 
Shell :: material ui icons installation 
Shell :: how to revoke permissions from group and others 
Shell :: crontab command 
Shell :: top command 
Shell :: pull master branch to gh-pages branch 
Shell :: shell get unique lines 
Shell :: docker NoRouteToHostException: No route to host (Host unreachable) 
Shell :: No module named ipykernel colab conda 
Shell :: how to check open vpn on ubuntu 
Shell :: how to use brew to install ganache 
Shell :: git --version git version 2.7.0 (Apple Git-66) 
Shell :: git exit commit message 
Shell :: Check /app/package.json: command not found. Is a start script missing? https://help.glitch.com/kb/article/31 
Shell :: how to clear background jobs 
Shell :: clear tracked files from git 
Shell :: how to reset git branch to a certain commit. 
Shell :: change user terminal 
Shell :: cptable is not defined at make_xlsx 
Shell :: create github repo without browser 
Shell :: how to clone a branch github 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =