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
Point 1) Check if you have followed the below sequence of steps when setting up git in your local workstation
$ git init
$ git add .
$ git commit -am “name of the commit”
$ git remote add origin https://github.com/username/repository.git
$ git push -u origin master
Point 2) Check if .git/config file has the following parameters in it[branch “master”]
remote = origin
merge = refs/heads/master