I have pushed all the directories and files from local /var/www/html/wp into my repository.
Now i want to delete wp-content in the remote repository. All the following commands executed locally.
cd /var/www/html/wp
touch .gitignore
vim .gitignore
wp-content/
Both wp-content/ and wp-content tested,none of them take effect.
git init
git add .
git commit -m 'test'
git push origin master
Why .gitignore configuration take no effect?
Can't delete directory in repository by adding dir name in gitignore file in late push?