git unwatch file code example
Example 1: git remove remote file keep local
# for single file
git rm --cached myfile
# for directory file
git rm --cached --r myfile
Example 2: remove directory from git without deleting
#for directory
git rm --cached -r myfile