-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Unfortunately, Deanu has cybersecurity software installed that alerts him when a file is breached.
Time for Concealment
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
Concealmentfrom theDefiancebranch. - 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
Concealmentbranch in comparison toDefiance. - 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 branchbranch1,git diff branch2gives the differences betweenbranch1andbranch2. - Make sure you keep updating the doc file that you have with screenshots to show the use of the above commands.
Reactions are currently unavailable

