This tutorial demonstrates how to Undo changes from a specific commit by creating a new commit that reverses those changes.
What you will learn in this episode:
1. Checking the history of a project timeline using git command: git log
2. Checking all commit notes using the command: git log --oneline
3. Checking the status of the project after adding files and putting the commit notes using the command: git status
4. Reversing to previous work or commits using Git backups using the command: git revert 'commit_hash'
5. Checking Commit Hash using the command: git revert 'commit_hash'
6. Resolving and troubleshooting conflicts while reverting to a specific commit in git
7. Finalizing commit reversal using the command: git revert --continue
No technical terms have been used with the intention that Slow Learners, Dummies and Complete beginners can understand easily. Help me Share widely so that it can reach the people who need it the most.
IF YOU ENCOUNTER AN ERROR SUCH AS THIS - "Auto-merging (file)
CONFLICT (content): Merge conflict in (file)
warning: Cannot merge binary files: (file) (HEAD vs. parent of f9a4e21 (text file modified))
Auto-merging (file)
CONFLICT (content): Merge conflict in (file)
warning: Cannot merge binary files: (file) (HEAD vs. parent of f9a4e21 (text file modified))
Auto-merging (file)
CONFLICT (add/add): Merge conflict in (file)
error: could not revert f9a4e21... text file modified
hint: After resolving the conflicts, mark them with hint: "git add/rm pathspec", then run
hint: "git revert-continue".
hint: You can instead skip this commit with "git revert --skip".
hint: To abort and get back to the state before "git revert",
hint: run "git revert-abort".
hint: Disable this message with "git config advice.mergeConflict false"", THEN I HAVE DESCRIBED HOW YOU CAN SOLVE IT IN THE VIDEO [FROM MINUTE 08.08 TO 12.53]
Git Documentation Resources: https://git-scm.com/doc
#git #github #coding #githublearning #tutorials #tutorial #EasyLearning #TechForDummies #SlowAndSteady #Programming #VersionControl