Basically, I am using git lfs system. In my folder1/ I have tons of local files (some of them are in the remote repository also) which I have not committed. Now, I want to clean up some space and I kind of decided to delete the whole folder1, but i do not want to affect the remote git repo. However, I am still a contributer to the git repo.
Is it safe to just,
rm -r folder1/
git commit folder2/
Yes. Should be fine.
I believe this GIT simplification might be useful when doing such tasks:
Just as measure of precaution make diff before pulling/pushing.