kdjulianofr Posted November 3, 2021 Share Posted November 3, 2021 Drag and drop the steps from the left into the correct sequence on the right to describe how to use Git to maintain the current HEAD and revert back to a previous commit, while undoing all intermediate commits 1. What is the goal of this command: git reset -–soft HEAD@{1} wouldn't the command: git reset hard 56e05fced already accomplished what's needed? That is reverting back to a previous commit, while undoing all intermediate commits. 2. Does it really matter where the git status command goes? It does not impact the final outcome. It could be used as verification right before or after the git commit -m “Revert to 56e05fced commit” thoughts? Thanks, 4 2 1 Link to comment Share on other sites More sharing options...
MacGyver Posted February 12, 2022 Share Posted February 12, 2022 (edited) According to Kayleen from examtopics(dot)com: You need to first do git log to find the commit number (56...). Then you do git reset --hard 56 to go back to that commit (this will only reset your local branch, your remote if you have it is still at the commit you had at the beginning). Then you do git reset --soft HEAD@{1} which will go back to where you were before git reset --hard BUT it will leave the files alone (how they were at 56). And at this point you can do git commit. This last commit will be on top of what you had at the beginning but the files will be from 56. Which is what the commit says. So should be: 1. git log 2. git reset --hard 56e05fced 3. git reset --soft HEAD@{1} 4. git status 5. git commit -m "Revert to 56e05fced commit" Edited February 12, 2022 by MacGyver 1 Link to comment Share on other sites More sharing options...
martek Posted August 2, 2022 Share Posted August 2, 2022 thanks but I would NOT use PL! PL has Mix of old and recent Qs but not new Qs and some answers are no corrected ! Do NOT trust PL ! Link to comment Share on other sites More sharing options...
martek Posted August 19, 2022 Share Posted August 19, 2022 On 8/17/2022 at 3:19 AM, SimonKN said: Hello! The newest 350-901 exam questions from Google Drive files FYI: (310q+ New Version) If that Google Drive link is not available in your area, try to get 350-901 dumps PDF from OpenDrive here: (310q+ New Version) Good luck! This is NO Requests section; go to Offers / shares section!!! Link to comment Share on other sites More sharing options...
nino Posted December 29, 2022 Share Posted December 29, 2022 is this valid? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now