Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

.env in gitignore

git rm .env --cached
git commit -m "Stopped tracking .env File"
Comment

how to add .env to gitignore

In your Root Directory do the following Inscrutions :

1- Create ".gitignore" !!Attention!! it might be alredy there":
Widnows : $ echo "" >.gitignore
MacOs :   $ touch .gitignore

2- Create ".env" file :
Widnows : $ echo "" >.env
MacOs :   $ touch .env

3- Add .env to ".gitignore" :
Windows && Macos : $ echo ".ev" >> .gitignore

"Warning!!!!": If your ".env" is already part of your "Git repository", 
adding it to ".gitignore" will not remove it. In this case 
you’ll also need to tell "Git" to stop tracking ".env" : 
$ git rm --cached .env
Comment

PREVIOUS NEXT
Code Example
Shell :: git checkout multiple branches at once 
Shell :: how to install graphviz jupyter 
Shell :: how to find ip adress of a web side kali linux 
Shell :: install android sdk 
Shell :: bash shortcuts 
Shell :: how to see how big a file is ubuntu terminal 
Shell :: webmin restart 
Shell :: error: cannot run ssh: No such file or directory 
Shell :: install jupyter notebook 
Shell :: github readme stats 
Shell :: export to path pipenv bash 
Shell :: Skype Downlaod Command. 
Shell :: git syntax 
Shell :: install flask auto reload 
Shell :: loop over array of strings bash 
Shell :: install csv 
Shell :: remove trailing slash 
Shell :: install golang 
Shell :: instal curl via yum 
Shell :: tar compress 
Shell :: compress folder ubutnu 
Shell :: git submodule remove 
Shell :: intel driver arch linux 
Shell :: add job to crontab 
Shell :: github change last commit message 
Shell :: how to install ssh server on ubuntu 16.04 
Shell :: count lines in files 
Shell :: sed replace all occurances? 
Shell :: add local folder to git repo 
Shell :: install yarn fedora 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =