benthayer / benthayer/git-gud

Level: Rewriting History 3 - "The Same Commit"

Open
#257 1 comment 0 reactions 1 assignee Claimed by @sahansk2 View on GitHub
level - educational
Dominant language
Python
Stars
558
Forks
53
PR merge metrics
No merged PRs in 30d

Description

```
3) The Same Commit - Use branches to show that the commit hash changes
```

`git gud status` (#264)
```
Before (branch):
Hash: 1234
Message: Commit

After (master):
Hash: 4321
Message: New Commit

======= Simulating: git log --oneline --all --graph
Blah
<<<<<<<
```

Trees:
```
A) Starting tree
Initial ---- Commit (master)

B) Branch
Initial ---- Commit (master, branch)

C)
Initial --- New Commit (master)
\
Commit (branch)

D)
Initial --- New Commit ---- Merge (master)
\ /
Commit (branch) --------
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.