Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thank you NonNumeric for your detailed explanation. What I have missed to say in the Question was, that the Repo was cloned through https. Every time git fetches something from the server, it requires the credentials. Thus, a bare git clone without extra filtering would require the credentials first. There is no SSH key installed. Commented Mar 3, 2023 at 8:21
  • Don't assume that the credentials for the https connection will not be cached. Git supports credential managers. When I fetch via https I don't need to reenter the password until it is changed. You also have the risks @Jasen mentioned. Commented Mar 3, 2023 at 12:35