The "Clean Solution" command in Visual Studio does not clear all the build artifacts. Here's how you can use the Git clean command to remove all unwanted build artifacts
Determine whether the current working directory is part of a Git repository, and if so, retrieve information for the remote GitHub repository.
A useful tip for exluding files from just your own local Git repository by using the .git/info/exclude file
Ran into a "Permission Denied" problem recently on Linux with executing a script from Jenkins, and this is how it was resolved.