This Git tutorial shows how undo changes made by a previous commit with the revert command. Watch more at
This tutorial is a single movie from the seventh chapter of the Git Essential Training course, presented by lynda.com author Kevin Skoglund. The complete course is over 6 hours long shows how to use Git to edit files, rollback changes, and test new ideas without messing up your software project
Git Essential Training table of contents:
Introduction
1. What is Git?
2. Installing Git
3. Getting Started
4. Git Concepts and Architecture
5. Making Changes to Files
6. Using Git with a Real Project
7. Undoing Changes
8. Ignoring Files
9. Navigating the Commit Tree
10. Branching
11. Merging Branches
12. Stashing Changes
13. Remotes
14. Tools and Next Steps
Conclusion
Nguồn: https://belahanajima.com/
Xem thêm bài viết khác: https://belahanajima.com/cong-nghe/
I tried this using "git revert <complete_hash_I_want_to_revert> -m 1" and it prompts me an error "error: mainline was specified but commit <complete_hash_I_want_to_revert> is not a merge. fatal: revert failed. "
I'm trying to revert a merged feature branch. <complete_hash_I_want_to_revert> is the hash after I merge back to dev branch.
This video is fknig stupid all i wanted to do was delete my last commit instead it changed all my latest files to previous now my project is fked
git sucks.