title: Excluding Environment Files from Github Angular 4 Project
body: <p>How do i exclude environment files from github for angular 4 project.</p>
  
  <p>I have updated my .gitignore to the following, but my environment files are still being synchronised to github: /src/environments/**</p>
  
  <pre><code># See http://help.github.com/ignore-files/ for more about ignoring files.
  
  # compiled output
  /dist
  /tmp
  /out-tsc
  
  # dependencies
  /node_modules
  
  # IDEs and editors
  /.idea
  .project
  .classpath
  .c9/
  *.launch
  .settings/
  *.sublime-workspace
  
  # IDE - VSCode
  .vscode/*
  !.vscode/settings.json
  !.vscode/tasks.json
  !.vscode/launch.json
  !.vscode/extensions.json
  
  # misc
  /.sass-cache
  /connect.lock
  /coverage
  /libpeerconnection.log
  npm-debug.log
  testem.log
  /typings
  /src/environments/**
  
  # e2e
  /e2e/*.js
  /e2e/*.map
  
  # System Files
  .DS_Store
  Thumbs.db
  </code></pre>