I'm learnig GIT. I created a .txt file where I added three entries in the following order:

```
ABC
123
DEF

```

Each entry has been commited. Now, I would like to revert a commit where I added "123" to get the following effect:

```
ABC
DEF

```

or

```
ABC

DEF

```

But when I'm trying to use `git revert <123 commit hash>` I get an error. Does anybody know how to solve this problem?

```
MINGW64 ~/Desktop/GIT revert test (main)
$ cat file_1.txt
ABC
123
DEF

MINGW64 ~/Desktop/GIT revert test (main)
$ git log --oneline
6c358c2 (HEAD -> main) DEF added
e2dffa0 123 added
46abdb3 ABC added
39d0250 empty .txt file created

MINGW64 ~/Desktop/GIT revert test (main)
$ git revert e2dffa0
Auto-merging file_1.txt
CONFLICT (content): Merge conflict in file_1.txt
error: could not revert e2dffa0... 123 added
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git revert --continue".
hint: You can instead skip this commit with "git revert --skip".
hint: To abort and get back to the state before "git revert",
hint: run "git revert --abort".

MINGW64 ~/Desktop/GIT revert test (main|REVERTING)
$

```

Also, when I modified my file1.txt for the first time I got that message (maybe this will help):

> 
> warning: LF will be replaced by CRLF in file\_1.txt.
> The file will have its original line endings in your working directory
> 
> 
>