I have a repository stored locally and on GitHub,
This repository is used to store the contents of my website,
After signing up to a CMS and it creating a hidden file in the GitHub directory I changed my mind and wanted to delete the hidden files.
I had performed
git pull origin master
In order to sync my local files with the files on GitHub, I then removed the hidden files locally and ran the following hoping it would sync the latest file with my local directory.
git add *
git commit -m "Removed CMS hidden files"
git push -u origin master
However, when doing this I get the following
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
deleted: .forestry/front_matter/templates/catalogue-entry.yml
deleted: .forestry/settings.yml
Untracked files:
.DS_Store
no changes added to commit
My desired outcome is to what I have locally synced exactly with my GitHub directory removing the hidden files added by the CMS.