You can set up global "git config" settings that apply to all git projects on your system. In this lesson, we review how the ./gitconfig
file works. We then add our own git config settings: username, email, editor, and git aliases.
There are many other git config commands that can be used, but this lesson shows you pattern behind them all so you can view and edit your own settings.
Alias:
git config --global alias.lg 'log --graph --oneline -p'
Then use alias:
git lg