all: redomod: rm -f go.* GO111MODULE= go mod init GO111MODULE= go mod tidy filter-branch: # git filter-branch --index-filter "git rm --cached --ignore-unmatch path_to_unwanted_file" --prune-empty --tag-name-filter cat -- --all # git filter-branch --tree-filter 'rm plugin.go' HEAD # git filter-branch --subdirectory-filter foodir -- --all