Trim refs to prevent empty lines to be in the array.
Guess name from the source in the GitResolver.
Add tests for the GitRemoveResolver.