---
title: "Discussion on \"Git Revert and Git Reset: Explained with Examples:\" | Hashnode"
description: "Discussion on \"Git Revert and Git Reset: Explained with Examples:\". Git Revert: git revert is used to create a new commit that undoes the changes introduced by a previous commit. It's a safe way to undo changes while preserving the commit history.\nGit Reset: git reset is used to move the current branch pointer to a d..."
url: "https://hashnode.com/posts/git-revert-and-git-reset-explained-with-examples/65a9124d17ab9141e57fe229"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Git Revert and Git Reset: Explained with Examples:](https://shri123.hashnode.dev/git-revert-and-git-reset-explained-with-examples?utm_source=hashnode&utm_medium=feed)

Git Revert: git revert is used to create a new commit that undoes the changes introduced by a previous commit. It's a safe way to undo changes while preserving the commit history. Git Reset: git reset is used to move the current branch pointer to a d...

Jan 18, 2024 · 3 min read · shri123.hashnode.dev  
Updated Jan 21, 2024  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#devops](https://hashnode.com/tag/devops)
-   [#devops-articles](https://hashnode.com/tag/devops-articles)
-   [#devops-journey](https://hashnode.com/tag/devops-journey)
-   [#devopscommunity](https://hashnode.com/tag/devopscommunity)
-   [#gitrevert](https://hashnode.com/tag/gitrevert)
-   [#gitreset](https://hashnode.com/tag/gitreset)
-   [#90daysofdevops](https://hashnode.com/tag/90daysofdevops)

## Written by

[Shrishail Patil](https://hashnode.com/@shrishail7)

@shrishail7 · India

  
[View profile](https://hashnode.com/@shrishail7)

DevOps Enthusiast

DevOps Enthusiast | Cloud &amp; DevOps | Kubernetes | AWS | Ansible | GIT | Terraform | Gitlab | Docker | Python | Linux | Software Testing | Data Engineering

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
