Skip to content

Instantly share code, notes, and snippets.

@setdjod
Last active June 2, 2019 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save setdjod/6d5eff389f0db28934873c39481485a5 to your computer and use it in GitHub Desktop.
Save setdjod/6d5eff389f0db28934873c39481485a5 to your computer and use it in GitHub Desktop.
Git Config

Git Config

Generating a new SSH key

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Adding your SSH key to the ssh-agent

start the ssh-agent in the background

eval $(ssh-agent -s)

add your SSH private key to the ssh-agent

ssh-add ~/.ssh/id_rsa

Paste Public Key to Github SSH

cat ~/.ssh/id_rsa.pub

Other Configuration

git config --global pack.threads "5"
git config --global http.postBuffer 524288000
git config --global pack.windowMemory "100m"
git config --global pack.packSizeLimit "100m"
git config --global core.preloadIndex false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment