Skip to content

Instantly share code, notes, and snippets.

@navidshaikh
Last active August 8, 2021 09:19
Show Gist options
  • Save navidshaikh/9448f1fcbc1a6bdb48e3aa42934d1bce to your computer and use it in GitHub Desktop.
Save navidshaikh/9448f1fcbc1a6bdb48e3aa42934d1bce to your computer and use it in GitHub Desktop.
Working with private repos at github

Put this global config:

git config --global url.ssh://[email protected]/.insteadOf https://github.com/

Or local config per repo:

git config url.ssh://[email protected]/.insteadOf https://github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment