Skip to content

Instantly share code, notes, and snippets.

Making GitHub Remote Ops (e.g. git push) Work with 2-Fac Authentication

The following method will let you use ssh keypair to push & pull commits without Personal Access Token, as long as you select "use ssh" instead of "use https" when cloning the repo.

1. Use OS X Keychain as Git credential helper

Install Git and the osxkeychain helper and tell Git to use it.

1. Find out if Git and the osxkeychain helper are already installed:
$ git credential-osxkeychain