Skip to content

Conversation

@eliranshriki
Copy link
Collaborator

git ex1

@@ -0,0 +1,79 @@
part one:
Copy link
Owner

Choose a reason for hiding this comment

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

good

# because we didn't use the commit cmd
# git reset --hard

part 2
Copy link
Owner

Choose a reason for hiding this comment

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

good




part 3
Copy link
Owner

Choose a reason for hiding this comment

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

good

#A) file 10.txt went back one stage after the "add" command and before the commit commend
#B) file "10.txt" and "9.txt" went back to a stage before the add command
#C) delete the file "8.txt" what was the last push
#D) delete the last commit and changes, and you need to add new commit No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

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

Good answers, so what HEAD~1 mean?

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