git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: interactive rebase results across shared histories

From
SSeb <spluque@gmail.com>
Date
Feb 23, 2016, 23:05 UTC
Message-ID
<87egc358ou.fsf@gmail.com>
In-Reply-To
<56CCE3C2.1050608@moritzneeb.de>

On Tue, 23 Feb 2016 23:57:06 +0100, Moritz Neeb <lists@moritzneeb.de> wrote:

[...]
Show 5 quoted lines
>> OK, I've followed this advice and looked at the dependency graphs in
>> gitk before and after rebasing, I've managed to obtain what I was
>> after.  The repository now has two branches: master and topic.
>> However, Gitk reveals a problem with a string of commits that are not
>> part of any branch:
>> A---B---H---I (master) \ C---D---E (loose string of commits) \
>> D'---E'---F---G (topic)
>> How do I remove these loose commits (C, D, E)?
> what you might be after is "git gc". But I never used it, it was not
> neccesary for me. I would let the automatic garbage collection drop my
> dangling commits. It's safer - who knows when you will still want to
> restore your recent "loose string of commits".
> How exactly are the loose commits causing trouble?

Sure enough, these dangling commits were removed automatically without any intervention. All is good.

Thanks!
-- 
Seb
Previous: Kevin DaudtNext: David
Message 10 of 13 in “interactive rebase results across shared histories”
  1. SebFeb 20, 2016
  2. Moritz NeebFeb 21, 2016
  3. SebFeb 21, 2016
  4. Eric SunshineFeb 21, 2016
  5. SebFeb 22, 2016
  6. DavidFeb 22, 2016
  7. SebFeb 23, 2016
  8. Moritz NeebFeb 23, 2016
  9. Kevin DaudtFeb 23, 2016
  10. SebFeb 23, 2016
  11. DavidFeb 26, 2016
  12. SebFeb 26, 2016
  13. Stepan KasalFeb 26, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.