Have git "prune" vendor
@@ -28,3 +28,11 @@ Session.vim
# coverage artifacts
.coverprofile
/gover.coverprofile
+
+# Ignore everything in vendor/, except for *.go files,
+# LICENSE and COPYING. Ignore Go tests.
+vendor/**
+!vendor/**/*.go
+!vendor/**/LICENSE
+!vendor/**/COPYING
+vendor/**/*_test.go
