Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @gjerokrsteski gjerokrsteski revised this gist Dec 19, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion remove env file from git
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,4 @@ echo '.env' >> .gitignore
    git rm -r --cached .env
    git add .gitignore
    git commit -m 'untracking .env'
    git push origin master'
    git push origin master
  2. @gjerokrsteski gjerokrsteski revised this gist Dec 19, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion remove env file from git
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    echo '.env' >> .gitignore
    git rm -r --cached .env
    git add .gitignore
    git commit -m 'untracking .env
    git commit -m 'untracking .env'
    git push origin master'
  3. @gjerokrsteski gjerokrsteski created this gist Dec 19, 2019.
    5 changes: 5 additions & 0 deletions remove env file from git
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    echo '.env' >> .gitignore
    git rm -r --cached .env
    git add .gitignore
    git commit -m 'untracking .env
    git push origin master'