Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Git

macOS Intune

Overview

Installs the latest version of Git via Homebrew. While macOS ships with a version of Git (via Xcode CLT), it is typically outdated and missing modern features required by DevOps pipelines.

What it does

  • Detection: Checks if Homebrew's Git is installed via brew list git.
  • Privilege Dropping: Identifies the logged-in user and drops privileges from root to the standard user via sudo -u.
  • Remediation: Installs the git formula securely in the user's Homebrew prefix, overriding the system's default Git.

Intune Deployment Configuration

  • Upload script: install-git.sh
  • Run script as signed-in user: No (Must start as root to switch context to the local user)