Skip to content

Conversation

perrymant
Copy link

Can someone help me make sure that each line is actually on a new line!

Thanks,
T

@@ -26,6 +26,14 @@ If you have any other questions not listed here, please raise a PR to have it ad

- Q: How can I __revert__ a commit?

`$ git commit -m "Something terribly misguided" (1).`
`$ git reset HEAD~ (2).`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only surround commands by quotes, not the whole line. like git reset HEAD

Copy link
Member

@kinbiko kinbiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you've learned a lot about reset!

@@ -26,6 +26,14 @@ If you have any other questions not listed here, please raise a PR to have it ad

- Q: How can I __revert__ a commit?

`$ git commit -m "Something terribly misguided" (1).`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

single backticks for words or single lines

three backticks
surrounding multiple lines
for code blocks

@@ -26,6 +26,14 @@ If you have any other questions not listed here, please raise a PR to have it ad

- Q: How can I __revert__ a commit?

`$ git commit -m "Something terribly misguided" (1).`
`$ git reset HEAD~ (2).`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking this is a reset. A reset is a command to go back in time. a revert would be undoing a single commit - I.e. applying a commit to the end of your commit history that does the opposite of the specified commit. That is, added lines become deleted, deleted lines are added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants