Install Git On Macos Catalina

  1. Install Git On Mac Os Catalina Download
  2. Install Git On Mac Os Catalina Free
  3. Install Git On Mac Os Catalina Os
  4. How Install Git On Mac

There are several options for installing Git on macOS. Note that any non-source distributions are provided by third parties, and may not be up to date with the latest source release.

Homebrew

Install homebrew if you don't already have it, then:
$ brew install git

Xcode

Apple ships a binary package of Git with Xcode.

Install Git with Homebrew alongside Xcode's Git installation. Here it is assumed that we have a version of git that has been installed by Xcode and we want to install a new version using homebrew. Install git with brew. $ brew install git. Confirm that brew installed a new version of git. And here is where the confusion begins. MacOS 10.15 Catalina Mostly-Automated Setup. An easy to refer to document for regularly setting up macOS 10.15 Catalina. The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs. Mac OSX Manual Environment Set Up Introduction When to Move to a Local Environment Step 0 Step By Step Instructions for Manual Installation ALERT - For New M1 Mac Laptops ONLY Install Xcode Command Line Tools Install Homebrew Install Zsh Install the GMP and GnuPG Packages Install RVM Install Some Ruby Gems Install Git Set Up the Learn gem Get a.

How to install macOS Catalina on Windows PC. June 3, 2021 July 9, 2021 admin 0 Comments Even in this advance world of tech with all know-hows of the world, installing a Hackintosh on pc is still a pretty tedious and daunting task! There are many different ways to set up Git on Mac. If you prefer using a GUI, Git offers a simple installation using the installer for Mac. On the other hand, you can install Git using the terminal with a couple of simple commands. Option 1: Install Git on Mac with Installer.

Binary installer

Tim Harper provides an installer for Git. The latest version is 2.32.0, which was released 20 days ago, on 2021-07-21.

Install git osx catalina

Building from Source

Install

If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.32.0.

Installing git-gui

If you would like to install git-gui and gitk, git's commit GUI and interactive history browser, you can do so using homebrew
$ brew install git-gui

Edit: Please note there is a newer version of this guide here: https://astonj.com/how-to-set-up-a-ruby-and-elixir-dev-environment-on-macos-2021/

Having recently started afresh on macOS, I thought I’d make some notes on setting up a new dev environment. In this post we’ll set up a fresh dev environment for Ruby and Elixir – but you can use this guide for any similar web development set-up since the version manager we’ll be using (asdf) can be used for lots and lots and lots of different languages.

If you don’t need Ruby or Elixir, you can just omit those steps. We’ll also add a few other common web development tools or packages. In short, we’ll be covering installation of:

  • Xcode
  • Command line tools
  • Homebrew
  • ImageMagic
  • Git
  • Postgres
  • TextMate
  • MacVim
  • Asdf
  • Ruby
  • Rubygems
  • Rails
  • Erlang
  • Elixir
  • Hex
  • Phoenix

Xcode

Simply download and install Xcode from the App store.

Command Line Tools

Once Xcode has installed, open it, then go to preferences > downloads, and install command line tools. Or alternatively, enter this in terminal:

Homebrew

In the terminal copy and paste the following:

ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'

In your .zshrc file add:

#Homebrew Completions
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
fi

Let’s get brewing – and install Postgres, ImageMagick and git

Let’s update Homebrew first:

Postgres

Then:

Then to start Postgres and on startup, run:

Then create your initial db:

Then:

That will create your Postgres user (use CTRL Z to exit).

Git and ImageMagick

Then in terminal:

git config --global user.name 'Your Name'
git config --global user.email 'youremail@yourdomain.com'

Installing asdf

In terminal, type:

Then in terminal run:

echo -e 'n. $(brew --prefix asdf)/asdf.sh' >> ~/.zshrc

This will add the following to the bottom of your ~/.zshrc file:

Install Git On Mac Os Catalina Download

Installing asdf plugin dependencies

In terminal:

brew install
coreutils automake autoconf openssl
libyaml readline libxslt libtool unixodbc
unzip curl

If you need to upgrade asdf, use brew upgrade asdf.

How to remove asdf

If you ever need to remove asdf, you can do so pretty easily:

  • In your .zshrc remove the line that was added on installation:. /usr/local/opt/asdf/asdf.sh
  • Run rm -rf ~/.asdf/ ~/.tool-versions to completely remove all the asdf files from your system.
  • In terminal: brew uninstall --force asdf

Installing Ruby

Skip if you don’t need Ruby and Rails…

In terminal:

To see which versions are available:

Then install the versions you want with the following, just replace 2.6.5 with the version you need:

Then set your preferred defaults with:

And to use a specific version in any particular directory:

To add new Rubies:

Or simply:

Rubygems and Rails

Open a fresh terminal window and:

For Rails:

Restart terminal and check your versions by:

Installing Elixir & Erlang

Skip if you don’t need Elixir and Phoenix

How to install git on mac catalina

In terminal:

To see which versions are available:

Then install the versions you want with the following, just replace version numbers with whichever versions you need:

asdf install erlang 22.2.3
asdf global erlang 22.2.3
asdf install elixir 1.9.4-otp-22
asdf global elixir 1.9.4-otp-22
Osx

And to use a specific version in any particular directory:

Installing Hex and Phoenix

Phoenix uses Brunch.io which relies on npm, the Node.js package manager, so lets install that as well via asdf:

asdf plugin-add nodejs
brew install gpg
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
asdf install nodejs 13.7.0
asdf global nodejs 13.7.0

To install Phoenix:

Install Git On Mac Os Catalina Free

Finally, check your versions by:

Doesn’t that feel good? Now you can install your favourite code editors!

Code Editors

I’m going to install two here, TextMate and MacVim 😀

TextMate 2

Download from here: https://macromates.com/download

Download my Elixify theme and follow the instructions from here (but you just need to double click on the TextMate 2 theme called Elixify.tmbundle)

Install Elixir Bundle:

mkdir -p ~/Library/Application Support/TextMate/Pristine Copy/Bundles
cd ~/Library/Application Support/TextMate/Pristine Copy/Bundles
git clone git://github.com/elixir-lang/elixir-tmbundle Elixir.tmbundle

MacVim

Next you’ll want to use Janus, which can be installed by running this in terminal:

In it paste:

color elixify
set guifont=Monaco:h12
let g:NERDTreeWinPos = 'right'
set guioptions-=T ' Removes top toolbar
set guioptions-=r ' Removes right hand scroll bar
set go-=L ' Removes left hand scroll bar
autocmd User Rails let b:surround_{char2nr('-')} = '<% r %>' ' displays <% %> correctly
:set cpoptions+=$ ' puts a $ marker for the end of words/lines in cw/c$ commands

Install Git On Mac Os Catalina Os

Then in terminal, to give it some breathing space at the top do:

To install the Elixify theme download from here and follow the instructions for MacVim.

How Install Git On Mac

mkdir ~/.vim/colors
cd ~/.vim/colors
mvim Elixify.vim

That’s it – you now have a fully working dev environment for Ruby, Elixir, Erlang, Node and any other language you want to add via the numerous supported by asdf… which I am really loving btw!!