This command will cause git to untrack your directory and all files under it without actually deleting them:
git rm -r --cached <your directory>
This command will cause git to untrack your directory and all files under it without actually deleting them:
git rm -r --cached <your directory>