Normal git logs
commands will output a full log detail to the console:
Often developers want to see compacted, colorized log outputs. To generate the compact logs, use a custom git lg
command.
Developers should create a git alias in their git configuration file:
~/.gitconfig
Developers can also specify a bash command glog
for the Terminal:
~/.bashrc
Then in the terminal window, just type log
to see the compacted git log output:
To easily navigate your Git repositories from the terminal, let's modify the standard terminal prompt to show:
Simply modify your Bash settings within the configuration bashrc
:
~/.bashrc
Don't forget to run
source ~/.bashrc
so you can see these changes in your terminal.
~/.gitconfig
And update your global gitConfig settings with improved 'aliases'.
plog
is the most important!