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

Task 4 : Concealment #4

Open
singhekansh opened this issue Mar 17, 2023 · 0 comments
Open

Task 4 : Concealment #4

singhekansh opened this issue Mar 17, 2023 · 0 comments

Comments

@singhekansh
Copy link
Collaborator

singhekansh commented Mar 17, 2023

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

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

No branches or pull requests

1 participant