Setting up local Git for Mac

Anytime I get a new machine I’m reminded that setting up git is both critical and not something I do that often. This is just a reminder post to myself on what it takes to get git working just local on a Mac:

  • Homebrew – Package manager that is a critical install for any mac found here: https://brew.sh/
  • Run in the console: brew install git
  • Lastly run the following commands
    • git config -- global user.email "your@email.com"
    • git config -- global user.name "First Last"

That’s it…now VS Code will allow you to initialize a repo for your project and manage your changes.

Normally I would recommend using Github and the desktop client but the use case here was specific to a client I was working with that supplied a laptop that could not be connected to external source control but I really needed something to manage and track changes.

Leave a Reply

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