You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Reverting a Commit exercise in the Exploring History section does not currently have a Solution section. This exercise is a fill-in-the-blank question, and some students might guess any number of incorrect answers based on commands learned during the lesson above (git diff, git status). It would be helpful, then, to provide a solution along with a brief explanation. Here’s a proposed solution:
Jennifer could look at the project’s history of commits, including full identifiers with: git log
For a shorter list, with short identifiers for each commit, she could use: git log --oneline
If Jennifer is sure her last commit to the repository was the most recent commit by the group, she could also find the commit identifier by looking at the repository’s HEAD: git show HEAD
The text was updated successfully, but these errors were encountered:
The Reverting a Commit exercise in the Exploring History section does not currently have a Solution section. This exercise is a fill-in-the-blank question, and some students might guess any number of incorrect answers based on commands learned during the lesson above (
git diff, git status
). It would be helpful, then, to provide a solution along with a brief explanation. Here’s a proposed solution:Jennifer could look at the project’s history of commits, including full identifiers with:
git log
For a shorter list, with short identifiers for each commit, she could use:
git log --oneline
If Jennifer is sure her last commit to the repository was the most recent commit by the group, she could also find the commit identifier by looking at the repository’s HEAD:
git show HEAD
The text was updated successfully, but these errors were encountered: