If you need to maintain that previous branch, this method for undoing commits is not the best option. This method is effective if the first branch is not your main branch. Create a new branch, and the Critical Security Trends RD will no longer exist on the new repo timeline: git checkout -b new_branch_without_critical_security_trends_rd.First, use the checkout command on this hash to access this commit: git checkout 5ac7e5d45c029b4108e091ce393c474ba486e745 In this example, the commit immediately preceding Critical Security Trends RD is the commit added Vision paragraph2 with the identifying hash 5ac7e5d45c029b4108e091ce393c474ba486e745. First, use the checkout command on the previous commit. You can do this by creating a new branch starting at the commit immediately before the one you want to undo. If you want to "undo" this commit, you can effectively remove it from the original repo timeline.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |