What Linux distribution do you use?
The first problem can be caused by a git misconfiguration. Look at git’s http.sslBackend.
Is your rm aliased to rm -i? That is often the cause for the last annoyance.
None of these issues are fatal aside from the first issue which if I understand correctly, stops you from updating your Discourse instance. The other two are related to local configuration.