Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7649965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:07:45+00:00 2026-05-31T11:07:45+00:00

On a test Git repository, git log yields: commit e1f972f22f9906ad62007b4e372d8dc06bc47656 Author: davidandreoletti Date: Sun

  • 0

On a test Git repository, git log yields:

commit e1f972f22f9906ad62007b4e372d8dc06bc47656
Author: davidandreoletti
Date:   Sun Mar 18 11:23:09 2012 +0800
   Added 0

commit 81a07eeffc58b054d4c083a0d7c1d4aa0b0440d5
Author: davidandreoletti
Date:   Sun Mar 18 10:46:44 2012 +0800

   first commit

and git tag 0.0.2 is a lightweight tag pointing to commit 81a07eeffc58b054d4c083a0d7c1d4aa0b0440d5. All commits have been pushed to a remote repository (tags included).

In this context, how do I make an existing Git “lightweight tag” point to another commit? I.e. I want tag “0.0.2” to point to commit e1f972f22f9906ad62007b4e372d8dc06bc47656 instead of 81a07eeffc58b054d4c083a0d7c1d4aa0b0440d5

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:07:47+00:00Added an answer on May 31, 2026 at 11:07 am

    Just dump the old tag and create a new one

    git tag -d 0.0.2
    git tag 0.0.2 e1f97...
    

    Assuming you have a remote repository that you work with, you’ll also need to:

    git push --tag --force <remote>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[root@234571-app2 git]# ./test.py File ./test.py, line 4 with open(/home/git/post-receive-email.log,'a') as log_file: ^ SyntaxError: invalid
I have a git repository with 2 branches: master and test. There are differences
I had creating git repository Test on git and installed git on my windows
I want to learn git, so is there any online test git repository available,
I have a git repository that is just a directory tree (/myprogram/src/com/mycompany/test) with some
I'm using one file from a git repository off of github in a project
I have a tracked database (already added) file in git. I want this file
I would like to list the last commit date for a large number of
I'm using a local Git project repository, and have created a remote repository followed
I'm using git and Codebase for a project. I just did a test and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.