Git allows you to configure your environment at three levels: system, global, and local. The .gitignore file also acts as a configuration file for telling Git what files to ignore.
Configuring your identity is the first thing you should do after installing Git. Every commit uses this information.
git config $scope user.name "$name"
git config $scope user.email "$email"If you need to see what variables are set (like aliases or default editors), you can list them out.
git config --list $scopeIt is easy to accidentally commit built binaries or cache files. You can quickly append them to your .gitignore file.
echo "$file" >> .gitignore