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 :: increase ssh session timeout linux 
Shell :: remove root permission from folder 
Shell :: git delete remote branch error: unable to delete remote ref does not exist 
Shell :: wget typo3 9 
Shell :: uninstall node mac 
Shell :: heroku procfile laravel 
Shell :: netsh wlan command for wifi password 
Shell :: cmd kill process on port 
Shell :: install pylatex no dependency 
Shell :: another-git-process-seems-to-be-running-in-this-repository 
Shell :: install hugo on ubuntu 
Shell :: alternative to installonair 
Shell :: network in arch linux 
Shell :: droidcam/v4l2loopback device not found (/dev/video[0-9]). did you install correctly? 
Shell :: ubuntu installing gimp 
Shell :: django cors install 
Shell :: nodemon command not found 
Shell :: add docker to group 
Shell :: github desktop brew 
Shell :: pip install bs4 pip install --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org 
Shell :: split terminal horizontally ubuntu 20.04 
Shell :: ERROR: Unknown command-line argument "-tgt-fs" 
Shell :: docker compose No protocol specified could not connect to display :1 
Shell :: using ffmpeg on mac to record screen 
Shell :: conda python versions 
Shell :: textbox should accept only numbers till 10 digit using angular 
Shell :: ngrok with netcat 
Shell :: installing eth-brownie 2022 
Shell :: is a real file not touching it apache2 
Shell :: extract tar 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =