Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve episode 5 "Exploring History" #703

rrahn opened this issue Dec 2, 2019 · 0 comments

Improve episode 5 "Exploring History" #703

rrahn opened this issue Dec 2, 2019 · 0 comments


Copy link

@rrahn rrahn commented Dec 2, 2019

Hi, first of all thanks for the software carpentry git lesson. I think it is already great and I only have a minor remark/improvement. In the chapter there is the part where a diff is done not against a relative commit from HEAD but using a commit ID. It further states that the 40 digit hash is hard to type and it would be sufficient to use the first 7 characters.

In general, I feel that the sentence should not start with "That's the right answer, ...", since there was never a question before. Further, I think at this point it would be helpful to revisit the git log --oneline feature, which was named in the lesson before as an additional feature to reduce the log information. But in addition, it shows the short IDs.

So my suggestion would be:

Great, now we see how the very first version of mars.txt differs from the current one (the HEAD). But typing out random 40-character strings is annoying, so Git lets us use just the first few characters (typically seven for normal size projects). To quickly get the short ID we can also use the command git log --oneline and copy the ID from the respective commit.

Please, let me know if this is helpful or should be further revised. I am happy to make a PR for this as well.

Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.