My goal is to get rid of one file in all my commits on github so i did next steps:
I have filtered my branch with this command:
git filter-branch --index-filter 'git rm --cached --ignore-unmatch [file_name]' HEAD
to delete one single file in all commits and now after running
git status
it asks me to pull,
ubuntu@ubuntu:/var/www/html/laravel/app_folder$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 18 and 18 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working directory clean
but i don't want to pull. I'm afraid that if i pull i will have this file again in my commits.
Shouldn't i push it now so the changes take effect on my git hub....i don't know what to do.