ceilingrat / git-experiments-1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-experiments-1

hackmd-github-sync-badge Run on Repl.it

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.

command reference

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.

git settings

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.

asciicast
video available, click image to open

git diff

Page 2.2 of the book Introduced the diff command.

asciicast
changes to rec.sh and run.sh are highlighted:
red for deletions, green for additions

git log

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.

asciicast
producing a report with custom formatted output

asciicast
graph option shows branches being merged

asciicast
-S parameter searching for a line of code, and patch parameter shows the diff

About


Languages

Language:Shell 100.0%