You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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.
The text was updated successfully, but these errors were encountered:
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 thegit reset
andgit 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
Concealment
from theDefiance
branch.Concealment
branch in comparison toDefiance
.git diff
: When you are at branchbranch1
,git diff branch2
gives the differences betweenbranch1
andbranch2
.The text was updated successfully, but these errors were encountered: