When trying to return to the previous commit, I tried:
git revert --no-commit 0766c053..HEAD
However, this gave an error:
empty commit set passed
Question: What does the error, and what went wrong with the team revert?
revert
It seems to me that you used the annotation incorrectly double dotto indicate the range of fixation.
double dot
Thus, your range does not return any commits, which means that revertit cannot do anything, since you effectively said "do not return any commits."
The gitpro book explains the double dotannotation (link to the chapter) quite solidly:
. Git , , arent . , , , 6-1., , . Git master..experiment - , , arent . " , :$ git log master..experimentDC, , - master, arent experiment - . experiment..master , master experiment:$ git log experiment..masterFE
. Git , , arent . , , , 6-1.
, , . Git master..experiment - , , arent . " , :
master..experiment
$ git log master..experimentDC
$ git log master..experiment
D
C
, , - master, arent experiment - . experiment..master , master experiment:
master
experiment
experiment..master
$ git log experiment..masterFE
$ git log experiment..master
F
E
..HEAD. , (git v2.7.4) .
git revert --no-commit 0766c053
Source: https://habr.com/ru/post/1548300/More articles:What actually causes the call to Tk ()? - pythonCannot find Android SDK Manager settings in MAC OS - androidJava import of external jar file - javaJava: why does the code packaged in a jar prevent access to external classes? - javamethod in java - javahow to check fake using undefined or null? - javascriptgit: how to undo a file that is in .gitignore [fatal: empty commit set accepted] - gitThe problem with the table view of the iOS table, I use sending and saving the cache - iosпозиция компаса в верхнем правом углу google map v2 в android - androidsitecore query to select a child for the selected parent in multi-sheets - sitecoreAll Articles