I agree per section of this article: https://opensource.com/article/18/6/git-reset-revert-rebase-commands
How to revert a Git commit
The net effect of the git revert command is similar to reset, but its approach is different. Where the reset command moves the branch pointer back in the chain (typically) to "undo" changes, the revert command adds a new commit at the end of the chain to "cancel" changes. The effect is most easily seen by looking at Figure 1 again. If we add a line to a file in each commit in the chain, one way to get back to the version with only two lines is to reset to that commit, i.e., git reset HEAD~1.
removing the previous commit from the commit history ,,, i vote for b.
once reset, the old commit are on a dead line of code, disappeared from the actual branch.
I believe it's D.
From Command Line Git help.
$ git revert --help
"...Note: git revert is used to record some new commits to reverse the effect of some earlier commits" and the questions asks "...by removing the previous commit".
If you want to throw away all uncommitted changes in your working directory, you should see git-reset(1), particularly the --hard option. Again, the questions asks "...by removing the previous commit" which "reset" doesn't do. So option B shouldn't be the answer.
Git revert adds a commit on top of the current commit. You'll overwrite whatever is coming from origin if I'm correct. You want to reset it back to the previous commit and then merge.
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.350-901 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
[Removed]
Highly Voted 2 years, 4 months agounknown_398
1 year, 7 months agoJCGO
Most Recent 10 months, 1 week agoJCGO
10 months, 1 week agoFedesarucho
1 year ago[Removed]
1 year, 6 months agobeariver
1 year, 5 months agodesignated
1 year, 8 months ago[Removed]
1 year, 6 months agoG_I_Pet3r
1 year, 11 months agoQuiShong
1 year, 10 months ago