Git
- Sign up for a GitHub account if you haven’t got one;
- Generate ssh keys for your
Git and GitHub :
# user settings
git config --global user.name <username_of_your_github>
git config --global user.email <email_of_your_github@domain.com>
# generate a new key
ssh-keygen -t rsa -C your_email@domain.com
# Press 'Enter' to save to default path
# Set Key: invisible when input.
# If don't input anything, the key is left empty
# Confirm Key.
cat ~/.ssh/id_rsa.pub
# show existing SSH key, copy to Github SSH Key
# DANGER: If you messed up, or want to remove the key
rm ~/.ssh/id_rsa.pub
- Global gitignore:
~/.gitignore_global
**/.DS_Store
**/dist
**.composer
**/node_modules
**/venv
**/.env.local
**/.env.*.local
**/.env
**/npm-debug.log*
**/yarn-debug.log*
**/yarn-error.log*
**/pnpm-debug.log*
**/.idea
**/.vscode
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
bin/
build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
.tox/
.coverage
.cache
nosetests.xml
coverage.xml
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# Rope
.ropeproject
# Django stuff:
*.log
*.pot
# Sphinx documentation
docs/_build/
git config --global core.excludesfile ~/.gitignore_global
- Check global config here:
~/.gitconfig