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 8351327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:35:55+00:00 2026-06-09T08:35:55+00:00

In GIT, if I checkout a tag I’ll get my working copy to that

  • 0

In GIT, if I checkout a tag I’ll get my working copy to that tag’s reference, i.e. the code will represent what I had at that time. I’m I correct?

Now, if I do that, and modify my code and commit. Where is that commit going? Will it sort of ‘auto-merge’? Meaning that if I push my commit, someone that clones the repo will also get the fix I did from the tag? Or otherwise, if I switch back to master, will I have the code modification available there?

  • 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-06-09T08:35:56+00:00Added an answer on June 9, 2026 at 8:35 am

    The commit is still only stored locally. Only you have a reference to the modified version. If you want to make it available to others, you will also have to do a git push of your code to the given branch.

    Your commits are branch-specific, meaning if you change branches after committing, your changes will not carry over. However, when you change back to the branch, the commit will still be there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I use Git checkout master~X, I will get the Xth merged commit, what
I have created branch with git checkout -b mybranch. It seems that something went
Upon coding, I realized I had made a mistake. I used git checkout 7e57dbf5a7245...
I am using 'git' to checkout chromium code by following this document: http://code.google.com/p/chromium/wiki/UsingGit And
it had a existing git checkout and had made some modifications, then i checked
How can I show the files git checkout adds/modifies/deletes in my working directory when
I did: git clone git://github.com/xyz/xyz.git git tag -l release-1.0.0 release-1.0.1 release-1.0.2 git checkout release-1.0.2
I used git checkout -b to create a new branch. I think that git
When I checkout, I get: me@localhost# git checkout master D deps/example M deps/example2 Switched
Git-tag documentation states that a tag should target a commit. So does the git

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.