Install Git Command Line Program For Mac Os X

The first approach is to use a Mac GUI installer, and the second is to use the command-line MacPorts project to install Git on Mac OS X. 1) Install Git on Mac OS X with the Git OS X installer The simplest way to install Git on Mac OS X is to use a project named ' Git OS X. Mac OS X: Windows: Linux/Unix: Older releases are available and the Git source repository is on GitHub. Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific experience. View GUI Clients →. Git on Mac OS X Video Tutorial Install Git on Macs by downloading and running the most recent installer for 'mavericks' if you are using OS X 10.9 and higher -or- if using an earlier OS X, choose the most recent 'snow leopard' installer, from this list.

  1. Command Line Program For Factorial In C
  2. Paint Program For Mac
  3. Installing Git Command Line Program For Mac Os X

A curated list of shell commands and tools specific to OS X.

“You don’t have to know everything. You simply need to know where to find it when necessary.” (John Brunner)

If you want to contribute, you are highly encouraged to do so. Please read the contribution guidelines.

For more terminal shell goodness, please also see this list's sister list Awesome Command Line Apps.

Caffeinating

When you find something helpful in here, you could buy me a coffee. I spend a lot of time and effort on curating this list. Keeping me properly caffeinated accelerates things. And it would really make my day. Kindness of strangers and all that. If you can't or won't, no hard feelings. It's available completely free for a reason. Still, it would be awesome.

Patreon: https://www.patreon.com/herrbischoff

Contents

  • Appearance
  • Applications
  • Backup
  • Developer
  • Files, Disks and Volumes
  • Finder
  • Hardware
  • Input Devices
  • Media
  • Networking
  • Security
  • Search
  • System
  • Terminal
  • Glossary

Appearance

Transparency

Transparency in Menu and Windows

Wallpaper

Set Wallpaper

Applications

App Store

List All Apps Downloaded from App Store

Show Debug Menu

Works up to Yosemite.

Apple Remote Desktop

Kickstart Manual Pages

Activate And Deactivate the ARD Agent and Helper

Enable and Disable Remote Desktop Sharing

Remove Apple Remote Desktop Settings

Contacts

Debug Mode

Google

Uninstall Google Update

iTunes

Keyboard Media Keys

This works up to Yosemite. System Integrity Protection was introduced in El Capitan which prevents system Launch Agents from being unloaded.

From El Capitan onwards, you can either disable SIP or resort to a kind of hack, which will make iTunes inaccessible to any user, effectively preventing it from starting itself or its helpers. Be aware that for all intents and purposes this will trash your iTunes installation and may conflict with OS updates down the road.

Mail

Show Attachments as Icons

Vacuum Mail Index

The AppleScript code below will quit Mail, vacuum the SQLite index, then re-open Mail. On a large email database that hasn't been optimized for a while, this can provide significant improvements in responsiveness and speed.

Safari

Change Default Fonts

Enable Develop Menu and Web Inspector

Get Current Page Data

Other options: get source, get text.

Use Backspace/Delete to Go Back a Page

Sketch

Export Compact SVGs

Skim

Turn Off Auto Reload Dialog

Removes the dialog and defaults to auto reload.

Terminal

Focus Follows Mouse

TextEdit

Use Plain Text Mode as Default

Visual Studio Code

Fix VSCodeVim Key Repeat

Backup

Time Machine

Change Backup Interval

This changes the interval to 30 minutes. The integer value is the time in seconds.

Local Backups

Whether Time Machine performs local backups while the Time Machine backup volume is not available.

Since High Sierra, you cannot disable local snapshots. Time Machine now always creates a local APFS snapshot and uses that snapshot as the data source to create a regular backup, rather than using the live disk as the source, as is the case with HFS formatted disks.

Prevent Time Machine from Prompting to Use New Hard Drives as Backup Volume

Show Time Machine Logs

This little script will output the last 12 hours of Time Machine activity followed by live activity.

Toggle Backup While on Battery

Verify Backup

Beginning in OS X 10.11, Time Machine records checksums of files copied into snapshots. Checksums are not retroactively computed for files that were copied by earlier releases of OS X.

Developer

Vim

Compile Sane Vim

Compiling MacVim via Homebrew with all bells and whistles, including overriding system Vim.

Neovim

Install the modern Vim drop-in alternative via Homebrew.

Installing git command line program for mac os x

Xcode

Install Command Line Tools without Xcode

Remove All Unavailable Simulators

Dock

Add a Stack with Recent Applications

Add a Nameless Stack Folder and Small Spacer

Add a Space

Add a Small Space

Auto Rearrange Spaces Based on Most Recent Use

Autohide

Icon Bounce

Global setting whether Dock icons should bounce when the respective application demands your attention.

Lock the Dock Size

Reset Dock

Resize

Fully resize your Dock's body. To resize change the 0 value as an integer.

Scroll Gestures

Use your touchpad or mouse scroll wheel to interact with Dock items. Allows you to use an upward scrolling gesture to open stacks. Using the same gesture on applications that are running invokes Exposé/Mission Control.

Set Auto Show/Hide Delay

The float number defines the show/hide delay in ms.

Show Hidden App Icons

Show Only Active Applications

Single App Mode

When clicking an application icon in the Dock, the respective windows will cometo the front, but all other application windows will be hidden.

Documents

Convert File to HTML

Supported formats are plain text, rich text (rtf) and Microsoft Word (doc/docx).

Files, Disks and Volumes

Create an Empty File

Creates an empty 10 gigabyte test file.

Disable Sudden Motion Sensor

Leaving this turned on is useless when you're using SSDs.

Eject All Mountable Volumes

The only reliable way to do this is by sending an AppleScript command to Finder.

Command Line Program For Factorial In C

Repair File Permissions

You don't have to use the Disk Utility GUI for this.

Beginning with OS X El Capitan, system file permissions are automatically protected. It's no longer necessary to verify or repair permissions with Disk Utility. (Source)

Set Boot Volume

Show All Attached Disks and Partitions

View File System Usage

A continuous stream of file system access info.

APFS

Available since High Sierra. There is no central utility and usage is inconsistent as most functionality is rolled into tmutil.

Convert Volume from HFS+ to APFS

Create New APFS Filesystem

Create Snapshot

Delete Snapshot

List Snapshots

Mount Snapshot

Snapshots are read-only.

Disk Images

Create Disk Image From Folder Contents

If you'd like to encrypt the disk image:

By default, you'll be prompted for a password. You can automate that by piping in a password:

Burn Disk Images to DVD

This command applies to .iso, .img and .dmg images.

Disable Disk Image Verification

Make Volume OS X Bootable

Mount Disk Image

Unmount Disk Image

Write Disk Image to Volume

Like the Disk Utility 'Restore' function.

Finder

Desktop

Show External Media

External HDs, thumb drives, etc.

Show Internal Media

Built-in HDs or SSDs.

Show Removable Media

CDs, DVDs, iPods, etc.

Show Network Volumes

AFP, SMB, NFS, WebDAV, etc.

Files and Folders

Clear All ACLs

Hide Folder in Finder

Show All File Extensions

Show Hidden Files

Remove Protected Flag

Show Full Path in Finder Title

Unhide User Library Folder

Increase Number of Recent Places

Layout

Paint Program For Mac

Show 'Quit Finder' Menu Item

Makes possible to see Finder menu item 'Quit Finder' with default shortcut Cmd + Q

Smooth Scrolling

Useful if you’re on an older Mac that messes up the animation.

Rubberband Scrolling

Expand Save Panel by Default

Desktop Icon Visibility

Path Bar

Scrollbar Visibility

Possible values: WhenScrolling, Automatic and Always.

Status Bar

Save to Disk by Default

Sets default save target to be a local disk, not iCloud.

Set Current Folder as Default Search Scope

Set Default Finder Location to Home Folder

Set Sidebar Icon Size

Sets size to 'medium'.

Metadata Files

Disable Creation of Metadata Files on Network Volumes

Avoids creation of .DS_Store and AppleDouble files.

Disable Creation of Metadata Files on USB Volumes

Avoids creation of .DS_Store and AppleDouble files.

Opening Things

Change Working Directory to Finder Path

If multiple windows are open, it chooses the top-most one.

Open URL

Open File

Open Applications

You can open applications using -a.

Open Folder

Open Current Folder

Fonts

Clear Font Cache for Current User

To clear font caches for all users, put sudo in front of this command.

Get SF Mono Fonts

You need to download and install Xcode 8 beta for this to work. Afterwards they should be available in all applications.

From Sierra onward, they are included in Terminal.app.

Functions

Please see this file.

Hardware

Bluetooth

Harddisks

Force Enable Trim

Enable Trim for non-Apple SSDs. This command is available since Yosemite.

Hardware Information

List All Hardware Ports

Remaining Battery Percentage

Remaining Battery Time

Show Connected Device's UDID

Show Current Screen Resolution

Show CPU Brand String

Infrared Receiver

Power Management

Prevent System Sleep

Prevent sleep for 1 hour:

Show All Power Management Settings

Put Display to Sleep after 15 Minutes of Inactivity

Put Computer to Sleep after 30 Minutes of Inactivity

Check System Sleep Idle Time

Set System Sleep Idle Time to 60 Minutes

Turn Off System Sleep Completely

Automatic Restart on System Freeze

Chime When Charging

Play iOS charging sound when MagSafe is connected.

Input Devices

Keyboard

Auto-Correct

Full Keyboard Access

Installing Git Command Line Program For Mac Os X

Enable Tab in modal dialogs.

Key Repeat

Disable the default 'press and hold' behavior.

Key Repeat Rate

Sets a very fast repeat rate, adjust to taste.

Launchpad

Reset Launchpad Layout

You need to restart Dock because Launchpad is tied to it.

Media

Audio

Convert Audio File to iPhone Ringtone

Create Audiobook From Text

Uses 'Alex' voice, a plain UTF-8 encoded text file for input and AAC output.

Disable Sound Effects on Boot

Mute Audio Output

Set Audio Volume

Play Audio File

You can play all audio formats that are natively supported by QuickTime.

Speak Text with System Default Voice

Video

Auto-Play Videos in QuickTime Player

Networking

Bonjour

Bonjour Service

DHCP

Renew DHCP Lease

Show DHCP Info

DNS

Clear DNS Cache

Hostname

Set Computer Name/Host Name

Network Preferences

Network Locations

Switch between network locations created in the Network preference pane.

Set Static IP Address

Networking Tools

Ping a Host to See Whether It’s Available

Troubleshoot Routing Problems

SSH

Permanently Add Private Key Passphrase to SSH Agent

Prior to macOS Sierra, ssh would present a dialog asking for your passphrase and would offer the option to store it into the keychain. This UI was deprecated some time ago and has been removed.

Instead, a new UseKeychain option was introduced in macOS Sierra allowing users to specify whether they would like for the passphrase to be stored in the keychain. This option was enabled by default on macOS Sierra, which caused all passphrases to be stored in the keychain.

This was not the intended default behavior, so this has been changed in macOS 10.12.2. (Source)

Then add to ~/.ssh/config:

Remote Login

TCP/IP

Show Application Using a Certain Port

This outputs all applications currently using port 80.

Show External IP Address

Works if your ISP doesn't replace DNS requests (which it shouldn't).

Alternative that works on all networks.

Show Network Interface Information

Undocumented flag of the scutil command.

TFTP

Start Native TFTP Daemon

Files will be served from /private/tftpboot.

Wi-Fi

Join a Wi-Fi Network

Scan Available Access Points

Create a symbolic link to the airport command for easy access:

Run a wireless scan:

Show Current SSID

Show Local IP Address

Show Wi-Fi Connection History

Show Wi-Fi Network Passwords

Exchange SSID with the SSID of the access point you wish to query the password from.

Turn on Wi-Fi Adapter

Package Managers

  • Fink - The full world of Unix Open Source software for Darwin. A little outdated.
  • Homebrew - The missing package manager for OS X. The most popular choice.
  • MacPorts - Compile, install and upgrade either command-line, X11 or Aqua based open-source software. Very clean, it's what I use.

Homebrew

Full Uninstall

Printing

Clear Print Queue

Expand Print Panel by Default

Quit Printer App After Print Jobs Complete

Security

Application Firewall

Firewall Service

Add Application to Firewall

Gatekeeper

Add Gatekeeper Exception

Remove Gatekeeper Exception

Manage Gatekeeper

Passwords

Generate Secure Password and Copy to Clipboard

Physical Access

Launch Screen Saver

Lock Screen

Screensaver Immediate Lock

Screensaver Password

Wiping Data

Note: The srm command appears to have been removed on MacOS after 10.9. There is a note on an Apple support page hinting as to why:

With an SSD drive, Secure Erase and Erasing Free Space are not available in Disk Utility. These options are not needed for an SSD drive because a standard erase makes it difficult to recover data from an SSD.

Securely Remove File

Securely Remove Folder

Securely Remove Path (Force)

Search

Find

Recursively Delete .DS_Store Files

Locate

Build Locate Database

Search via Locate

The -i modifier makes the search case insensitive.

System

AirDrop

AppleScript

Execute AppleScript

Basics

Compare Two Folders

Copy Large File with Progress

Make sure you have pv installed and replace /dev/rdisk2 with the appropriate write device or file.

Restore Sane Shell

In case your shell session went insane (some script or application turned it into a garbled mess).

Restart

Shutdown

Show Build Number of OS

Uptime

How long since your last restart.

Clipboard

Copy data to Clipboard

Convert Clipboard to Plain Text

Convert Tabs to Spaces for Clipboard Content

Copy data from Clipboard

Sort and Strip Duplicate Lines from Clipboard Content

FileVault

Automatically Unlock FileVault on Restart

If FileVault is enabled on the current volume, it restarts the system, bypassing the initial unlock. The command may not work on all systems.

FileVault Service

Information/Reports

Generate Advanced System and Performance Report

Install OS

Create Bootable Installer

  • For confirmation before erasing the drive, remove –-nointeraction from the command.
  • The optional –-downloadassets flag is new in Mojave. It downloads assets which may be required during installation, like updates.
  • The –-applicationpath flag is deprecated since Mojave and will throw an error if used.

Kernel Extensions

Display Status of Loaded Kernel Extensions

Load Kernel Extension

Unload Kernel Extensions

LaunchAgents

Please see this file.

LaunchServices

Rebuild LaunchServices Database

To be independent of OS X version, this relies on locate to find lsregister. If you do not have your locate database built yet, do it.

Login Window

Set Login Window Text

Memory Management

Purge memory cache

Show Memory Statistics

Install Git Command Line Program For Mac Os X

Notification Center

Notification Center Service

QuickLook

Preview via QuickLook

Remote Apple Events

Root User

Safe Mode Boot

Save Dialogs

Significantly improve the now rather slow animation in save dialogs.

Screenshots

Take Delayed Screenshot

Takes a screenshot as JPEG after 3 seconds and displays in Preview.

Save Screenshots to Given Location

Sets location to ~/Desktop.

Save Screenshots in Given Format

Sets format to png. Other options are bmp, gif, jpg, jpeg, pdf, tiff.

Disable Shadow in Screenshots

Set Default Screenshot Name

Date and time remain unchanged.

Software Installation

Install PKG

Software Update

Install All Available Software Updates

Set Software Update Check Interval

Set to check daily instead of weekly.

Show Available Software Updates

Set Software Update Server

This should only be done for testing purposes or unmanaged clients. To use network-wide, either correctly set up DNS along with Apple SUS service and bind your clients via OpenDirectory. Alternatively, use Reposado together with correct network DNS settings to make resolution transparent. Margarita looks nice to have as well.

Software Version

Show System Software Version

Spotlight

Spotlight Indexing

Erase Spotlight Index and Rebuild

Search via Spotlight

Show Spotlight Indexed Metadata

System Integrity Protection

Disable System Integrity Protection

Reboot while holding Cmd + R, open the Terminal application and enter:

Enable System Integrity Protection

Reboot while holding Cmd + R, open the Terminal application and enter:

Date and Time

List Available Timezones

Set Timezone

Set Clock Using Network Time

Terminal

Ring Terminal Bell

Rings the terminal bell (if enabled) and puts a badge on it.

Alternative Terminals

  • Alacritty - Cross-platform, GPU-accelerated terminal emulator.
  • iTerm2 - A better Terminal.app.
  • kitty - Modern, GPU-accelerated terminal emulator.

Shells

Bash

Install the latest version and set as current user's default shell:

  • Homepage - The default shell for OS X and most other Unix-based operating systems.
  • Bash-it - Community Bash framework, like Oh My Zsh for Bash.

fish

Install the latest version and set as current user's default shell:

  • Homepage - A smart and user-friendly command lineshell for OS X, Linux, and the rest of the family.
  • The Fishshell Framework - Provides core infrastructure to allow you to install packages which extend or modify the look of your shell.
  • Installation & Configuration Tutorial - How to Setup Fish Shell with Fisherman, Powerline Fonts, iTerm2 and Budspencer Theme on OS X.

Zsh

Install the latest version and set as current user's default shell:

  • Homepage - Zsh is a shell designed for interactive use, although it is also a powerful scripting language.
  • Oh My Zsh - An open source, community-driven framework for managing your Zsh configuration.
  • Prezto - A speedy Zsh framework. Enriches the command line interface environment with sane defaults, aliases, functions, auto completion, and prompt themes.
  • zgen - Another open source framework for managing your zsh configuration. Zgen will load oh-my-zsh compatible plugins and themes and has the advantage of both being faster and automatically cloning any plugins used in your configuration for you.

Terminal Fonts

  • Anonymous Pro - A family of four fixed-width fonts designed with coding in mind.
  • Codeface - A gallery and repository of monospaced fonts for developers.
  • DejaVu Sans Mono - A font family based on the Vera Fonts.
  • Hack - Hack is hand groomed and optically balanced to be your go-to code face.
  • Inconsolata - A monospace font, designed for code listings and the like.
  • Input - A flexible system of fonts designed specifically for code.
  • Meslo - Customized version of Apple's Menlo font.
  • Operator Mono - A surprisingly usable alternative take on a monospace font (commercial).
  • Powerline Fonts - Repo of patched fonts for the Powerline plugin.
  • Source Code Pro - A monospaced font family for user interfaces and coding environments.

Glossary

Mac OS X, OS X, and macOS Version Information

VersionCodenameRelease DateMost Recent Version
Rhapsody Developer ReleaseGrail1Z4 / Titan1UAugust 31, 1997DR2 (May 14, 1998)
Mac OS X Server 1.0HeraMarch 16, 19991.2v3 (October 27, 2000)
Mac OS X Developer Previewn/aMarch 16, 1999DP4 (April 5, 2000)
Mac OS X Public BetaKodiakSeptember 13, 2000n/a
Mac OS X 10.0CheetahMarch 24, 200110.0.4 (June 22, 2001)
Mac OS X 10.1PumaSeptember 25, 200110.1.5 (June 6, 2002)
Mac OS X 10.2JaguarAugust 24, 200210.2.8 (October 3, 2003)
Mac OS X 10.3PantherOctober 24, 200310.3.9 (April 15, 2005)
Mac OS X 10.4TigerApril 29, 200510.4.11 (November 14, 2007)
Mac OS X 10.5LeopardOctober 26, 200710.5.8 (August 5, 2009)
Mac OS X 10.6Snow LeopardAugust 28, 200910.6.8 v1.1 (July 25, 2011)
Mac OS X 10.7LionJuly 20, 201110.7.5 (September 19, 2012)
OS X 10.8Mountain LionJuly 25, 201210.8.5 (12F45) (October 3, 2013)
OS X 10.9MavericksOctober 22, 201310.9.5 (13F1112) (September 18, 2014)
OS X 10.10YosemiteOctober 16, 201410.10.5 (14F27) (August 13, 2015)
OS X 10.11El CapitanSeptember 30, 201510.11.6 (15G31) (July 18, 2016)
macOS 10.12SierraSeptember 20, 201610.12.6 (16G29) (July 19, 2017)
macOS 10.13High SierraSeptember 25, 201710.13.6 (17G65) (July 9, 2018)
macOS 10.14MojaveSeptember 24, 201810.14 (18A391) (September 24, 2018)
macOS 10.15Catalinatbatba

License


This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.