Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Apply .gitignore on an existing repository

First of all, commit all pending changes.
Then run this command:
git rm -r --cached .
This removes everything from the index, then just run:

git add .
Commit it:

git commit -m ".gitignore is now working"
Comment

PREVIOUS NEXT
Code Example
Shell :: how to access mongo shell 
Shell :: install docker in ubuntu 
Shell :: ubuntu know username 
Shell :: sudo doesnt work on windows 
Shell :: edit crontab daily 
Shell :: change owner for folder and subfolders linux 
Shell :: what to do with unstaged changes after reset 
Shell :: expo font install 
Shell :: linux commad to show directories 
Shell :: bash while loop 
Shell :: ubuntu update 
Shell :: installing composer command line 
Shell :: powershell webrequest 
Shell :: install nvm mac with brew 
Shell :: npm install bootstrap 3 
Shell :: pip install geoip2 
Shell :: tar file linux 
Shell :: git force merge branch 
Shell :: superclass mismatch for class Command ruby 
Shell :: find bigger file on linux centos 
Shell :: aws extend volume ubuntu 
Shell :: awk columns 
Shell :: renaming heroku remotes 
Shell :: install brew on mac 
Shell :: ubuntu 20.04 wont see OpemSSH 
Shell :: how to install lvm2 on ubuntu 
Shell :: how to install wifite for kali linux 
Shell :: xampp ubuntu 
Shell :: angular bootstrap 
Shell :: start uvicorn 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =