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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:31:29+00:00 2026-06-14T12:31:29+00:00

I am using git with git flow, and dev and branches. I worked on

  • 0

I am using git with git flow, and “dev” and “branches”. I worked on a feature baaed on dev, then made some commits in dev. Now I want to rebase my feature on the dev HEAD. Rebase works perfectly, but I also have stashed changes in my feature. When I run gitk, everything looks fine, but when I tick “All refs” in view, it shows the feature branch twice – once correctly rebased on dev HEAD, but also on its old position in the branch tree. I assume that it has something to do with stashing, since that doesn’t show up without a stash.

before rebase:

A-B-E
   \
    C-D

after rebase

A-B-E-C-D

after rebase with stash

A-B-E-C-D-stash
   \
    C-D-stash

The actual question: are these commits really duplicate? And if yes, what can I do about it?

  • 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-14T12:31:30+00:00Added an answer on June 14, 2026 at 12:31 pm

    You can see the old pre-rebase commits since they are reachable through the stash. Git doesn’t change commits when you change history, it just stores new ones.

    You can just ignore the commits. If you drop the stash, you won’t see them even when you look at all refs. The next git gc (automatic or manual) will delete them.

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

Sidebar

Related Questions

I'm having some troubles right now I am using git flow and created a
I'm using GIT for my projects. Now I want to integrate it with github,
Using Git Bash, I just edited some commits. In the shell it says: Successfully
We've been using Git internally for quite some time now and have a pretty
When using git, is there a way to show commits made to a branch,
I've been using git for some time now on Windows (with msysGit) and I
I'm using Git Flow for my project, and have completed the git flow feature
We're using git flow. Here is the flow. git flow feature start myfeat git
I am using git along with git flow . Here git flow has a
Using Git, my editor for commits is Vim. I'm constantly doing a poor job

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.