Skip to content

Task 4 : Concealment #4

@singhekansh

Description

@singhekansh

Unfortunately, Deanu has cybersecurity software installed that alerts him when a file is breached.

Time for Concealment

Order-of-the-Phoenix

So, your task now is to revert those changes back and see the difference in files from the branch Defiance. You'll do this task using the git reset and git diff commands.

We can hard reset our repository back to a specific commit using git reset --hard commithash

If commit hash sounds too fancy try using Google.

Hacks

  • Create a new branch Concealment from the Defiance branch.
  • Note down the commithash for the last commit, as you will need it later.
  • Reset the repository one commit back.
  • Now, to see what has changed in this branch after the resetting of the last commit. Using git diff, see what is different in the Concealment branch in comparison to Defiance.
  • Reset the repository back to the last commit using the commithash from step 3.
  • Make a pull request from GitHub. Always check the source and destination of the pull request before creating PR. In the pull request description, write 🎯Solved-Concealment
  • For git diff: When you are at branch branch1, git diff branch2 gives the differences between branch1 and branch2.
  • Make sure you keep updating the doc file that you have with screenshots to show the use of the above commands.

meme_4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions