Git
Distributed version control system you can't really live without those days.
Installation
Open iTerm and enter command
brew install git
Configuration
Setup global user name and mail
git config --global user.name "Your Name" git config --global user.email [email protected]
Create a
.gitignore
file in your $HOME directory with the following content.idea/ .DS_Store
This is a base, https://www.gitignore.io/ is far more precise per OS, IDE, ...
Define this file as a global
git config --global core.excludesfile ~/.gitignore
SSH
As it's a guide for fresh install, i consider there is no ".ssh" folder in your $HOME
- Create rsa public and private key (if you don't want a passphrase, just pass every question)
ssh-keygen -t rsa -b 4096 -C "[email protected]"
- Start ssh agent
eval "$(ssh-agent -s)"
- Add the created key to it
ssh-add -K ~/.ssh/id_rsa
Add the created to your Github account
- Copy the public key to your clipboard
pbcopy < ~/.ssh/id_rsa.pub
- Go to https://github.com/settings/keys
- Click on "New ssh key"