.gitignore helps secure config files

Andrés Sandoval
Jul 24, 2017 · 1 min read

How to use .gitignore:

  1. In your git project open file .gitignore
removing files from git

2. Add files names or directories you don’t want to push to github

3. Remove files from git track with below command

$git rm — cached FILENAME

Now file changes will not be push to github.

    Andrés Sandoval

    Written by

    Sr. Software Engineer, writer, swimmer, traveler. my personal apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade