Press f1 and type git: Close And it will show you Git: Close All Unmodified Editors like the image below:
f1
git: Close
Git: Close All Unmodified Editors