Installing git on a macbook

As I was setting up a new Android Studio installation in a reformatted Macbook, I ran into this issue:
Git is not installed
xcode-select: note: No developer tools were found, requesting install. If developer tools are located at a non-default location on disk, use sudo xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools, and cancel the installation dialog. See man xcode-select for more details.

<!–more–>

To verify the lack of git in the machine, I ran git --version command for which I got a xcode-select: note: No developer tools were found, requesting install.

To install git, I ran the following command in my Terminal:
xcode-select --install

and got a response:
xcode-select: note: install requested for command line developer tools

I initially thought that the git installation wasn’t working, until I finally noticed that there was a pop-up asking for confirmation! I confirmed the installation and right now the pop-up window looks like this as it installs git on my machine.

As I waited for the installation to complete I asked myself why I write about this. Will it be helpful to anyone? Will anyone even read this page in the future, at the age when AI is most people’s first source of information instead of visiting web pages one by one?

The answer I had was: Yes, this will surely be helpful to at least one person — me! The reason why I blog about challenges I encounter to begin with (since over a decade ago) is to help myself remember in the future. But, why? It’s because it supports my terrible memory.

After a few minutes, “the software was installed”:

I ran git --version again and finally got this:
git version 2.50.1 (Apple Git-155)

Related Posts:

Posts that may be related to "Installing git on a macbook":

Catzie

An odd human being who happens to have a variety of ever-changing interests, but right now they are programming, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert/drink flavors, obsessing about finding out how some things works, automation, anime, video games... Ran online dessert shops Cookies PH and Catzie's Cakery in her past life.

Leave a Reply

Your email address will not be published. Required fields are marked *