Computer Science, asked by imtiajtarafder2392, 11 months ago

What does the following command perform? Git reset –- soft HEAD^

Answers

Answered by ankurbadani84
1

Answer:- Reset command is used to undo last commit. Now you can reset in SOFT or HARD way.If you want to preserve changes of undone version you need to do is SOFT reset. These changes are stored in local copy or in your working directory. In case you want to completely remove the changes then option is to do HARD reset.

Answered by aqibkincsem
0

Git checkout and Git reset commands are quite confusing when somebody encounters them first. They consist of a number of functions which is why it is not surprising that many people tend to confuse them on a regular basis.

An easier approach in order to understand the checkout and the reset system is to look at the mental frame of the Git.

When we take a look at "tree", we understand that it refers to the "collection of files" and not exactly to the data structure that pre exists int he system.

Similar questions