---
title: "Discussion on \"How to fix wrong Git Tag date\" | Hashnode"
description: "Discussion on \"How to fix wrong Git Tag date\". You can add a tag to a previous commit in Git using the command git tag TAG_NAME COMMIT_HASH. However, this will update the tag's date, which can cause your repository to become out of chronological order.\nTo fix this, you can use the following code:..."
url: "https://hashnode.com/posts/how-to-fix-wrong-git-tag-date/6390d060120246e215ff9fa9"
---

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

Discussion

# [How to fix wrong Git Tag date](https://www.erdaltaskesen.com/how-to-fix-wrong-git-tag-date?utm_source=hashnode&utm_medium=feed)

You can add a tag to a previous commit in Git using the command git tag TAG\_NAME COMMIT\_HASH. However, this will update the tag's date, which can cause your repository to become out of chronological order. To fix this, you can use the following code:...

Nov 7, 2018 · 2 min read · erdaltaskesen.com  
Updated Dec 10, 2022  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#git-tips](https://hashnode.com/tag/git-tips)
-   [#git-tag](https://hashnode.com/tag/git-tag)
-   [#gitcommitterdate](https://hashnode.com/tag/gitcommitterdate)
-   [#commithash](https://hashnode.com/tag/commithash)

## Written by

[Erdal TAŞKESEN](https://hashnode.com/@erdaltsksn)

@erdaltsksn · Earth

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

Self-Taught Software Engineer, Day Trader, Investor, Entrepreneur, and Teacher

Hey, y’all 🖖🏽 I am a passionate self-taught developer, open-source advocate, and tech enthusiast with a hands-on approach to problem-solving and an unending thirst for knowledge. Anything and everything classified as technology fascinate me.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
