Skip to content

Commit 33e6184

Browse files
author
Amin Jafari
committed
Merge branch 'advanced/04-git-revert'
2 parents 6e0075b + 0268621 commit 33e6184

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

git-revert.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Git Revert
2+
3+
The `git revert` command undoes a commit by creating a new commit.
4+
5+
## Usage
6+
```bash
7+
git revert <commit>
8+
```
9+
10+
## Explanation
11+
- Reverts the changes introduced by a specific commit.
12+
13+
- Creates a new commit to undo the changes.
14+
15+
## Example
16+
```bash
17+
git revert abc1234
18+
```

0 commit comments

Comments
 (0)