8/8/2017 - 9:58 PM

Git Configurations

Git configurations to be set for global ~/.gitconfig file.

After creating SSH key, setup some settings

View current config settings

git config --global --list #  ~/.gitconfig
git config --local --list  # .git/config
git config --list

To view and set value

# to view
git config --global
# to set
git config --global "Arturo Simon"

Some useful global config settings

git config --global ""
git config --global "Arturo Simon"
git config --global color.ui true
git config --global core.autocrlf input
git config --global push.default simple # simple - just pushes current branch to github
                                        # matching - pushes all matching branches to github
git config --global pull.rebase true    # defaults all new branches to fetch then rebase (instead of fetch/merge)
git config --global core.excludesfile '~/.gitignore_global' # be sure to create file