git config --global core.excludesfile ~/.gitignore
*~
\#*\#
.ensime
.ensime_cache
.settings
.classpath
.cache-main
.cache-tests
.project
Globally
git config --global user.name "My Name"
git config --global user.email "[email protected]"
Drop the --global
for a per-repo configuration.
git add -p <filepath>