I will be reading through the Pro Git book and whenever I encounter something that I want to test out, I will use this repl as my test environment.
In this repository, I will store both the files that I used and journal entries to accompany these files and capture any important lessons learned from my experiments.
If this file gets too cluttered, I will make additional .md
files, and potentially even additional directories.
However, let's start with the journal entries here in this file.
Since the replit environment doesn't gave man entries, I can't get help at the command-line.
Instead, I should use the online reference docs.
Page 1.6 of the book introduces configuration of git and describes how to check your git configuration.
I think it would be a good idea to add this to my run.sh
file so that this information is printed to the console when the repl is run.
More commands can be added later.
video available, click image to open
Page 2.2 of the book Introduced the diff
command.
changes to rec.sh
and run.sh
are highlighted:
red for deletions, green for additions
Page 2.3 of the book introduces the log
command for viewing the history of commits.
It seems pretty interesting and useful, especially if the goal is to generate reports of some kind.
producing a report with custom formatted output
graph
option shows branches being merged
-S
parameter searching for a line of code, and patch
parameter shows the diff