My initial commit contained some log files. I\'ve added *log to my .gitignore, and now I want to remove the log files from my repository.
*log
.gitignore
If you want to just untrack a file and not delete from local and remote repo then use thhis command:
git update-index --assume-unchanged file_name_with_path