If you want to add certain files that was previously removed from Git repository, follow the steps given below.
STEP 1: remove the file reference in .gitignore
STEP 2: remove the cached reference from git.
$ git rm –cached sampleconfig.txt
STEP 3: add the file to Git repository
$ git add sampleconfig.txt
$ git commit -am “Adding sampleconfig back to git commit”