I need to use git on command line on macOS 11 (Big Sur), and git comes with command line developer tools. Here is how it can be done on macOS:

❯ xcode-select --install
xcode-select: note: install requested for command line developer tools

On a side note, I notice that every time there is an update to Big Sur, I also have to re-install this Xcode Command Line Tools.

Ref: