Git not working on M1 chip after migration [duplicate]

Solution 1:

Clearly the best answer is to get the version of git that works with your machine's M1 architecture. That appears to be installation of the Xcode CLT. MacPorts and Homebrew both require CLT, so I don't believe there's a way around that.

However, as an ad-hoc solution, you could create an alias for your shell that would allow you to run the X86 arch version of git. It's a slightly different process for zsh vs. bash, but details for setting up aliases for both are covered in this article.