The git-related tasks are caused by a reference to Microsoft.SourceLink.GitHub in the src\Directory.Build.props file.
Instead of trying to remove them, the simplest way to get the build to stop complaining would be to initialize a new git repo for the solution, by running
git init
from a command prompt in the solution directory.