Skip to content

Commit

Permalink
WIP log
Browse files Browse the repository at this point in the history
  • Loading branch information
miallo committed Jan 2, 2024
1 parent fb7b0df commit 843d86d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions create_challenge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ sed "s/BRANCH_COMMIT/$BRANCH_COMMIT/" "$DOCDIR/03_commit/commit.md" > commit.md
git add commit.md
commit -m "Add description on commit"

git switch -c history
cp "$DOCDIR/06_log/log.md" .
git add log.md
commit -m "Add description on log"

git switch main

# uncommitted changes/status
# Needs to be second to last (only before hooks), so that the uncommitted changes are available initially
cat "$DOCDIR/02_status_diff/status.md" >> README.md
Expand Down
7 changes: 7 additions & 0 deletions src/06_log/log.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The git log

If you want to investigate the history of a commit there is `git log`.
By default it will show you just the metadata of the commits, but it can also be helpful to see the "patch" (i.e. the introduced changes):
```sh
git log -p ADVANCED_COMMIT
```

0 comments on commit 843d86d

Please sign in to comment.