Changelog

Since we commit every change to the source control system, we immediately get a nice change log. In VSCode, you can enable the history view by adding the extension Git History, by Don Jayamanne:

Being PowerShell enthusiasts, we don't care for pretty pictures, so if you are not in an editor, you might want to use git log, instead:

# Get the commit history
git log

# How about a nicer format?
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(white)<%an>%Creset' --abbrev-commit

# Configure an alias to make it easier to use
git config --global alias.prettylog "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(white)<%an>%Creset' --abbrev-commit"

The output of the previous script block can be seen in the next screenshot. Observe how different git log and git prettylog output data. You can decide which of those commands you like best to get information about your Git history:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.53.209