All of lore.kernel.org
 help / color / mirror / Atom feed
* rebase -i --update-refs can lead to deletion of branches
@ 2022-10-20 17:01 herr.kaste
  2022-10-20 20:49 ` Erik Cervin Edin
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: herr.kaste @ 2022-10-20 17:01 UTC (permalink / raw)
  To: git

Hi,

I have the following:

While doing a

`$ git rebase --interactive  --update-refs X`

I *removed* the "update-ref" lines from the todo list.  The rebase runs
as expected and prints e.g.

```
Successfully rebased and updated refs/heads/test.
Updated the following refs with --update-refs:
refs/heads/master
refs/heads/permissive-interactive-rebase
refs/heads/variable-annotations-meta-block
```

After that all refs have been removed/deleted.

```
$ git branch  --list
* test
```

Now, I should just have not used `--update-refs` in the first place but anyway
I decide late that I rather don't want to update "master" etc. and it should
probably not delete the local refs.

Actually, I so love the new feature that I switched it *on* by default, and just
wanted to overwrite the behavior in the todo editor.

Regards
Caspar Duregger

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-11-08  9:58 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 17:01 rebase -i --update-refs can lead to deletion of branches herr.kaste
2022-10-20 20:49 ` Erik Cervin Edin
2022-11-03  9:32 ` Phillip Wood
2022-11-03 15:25   ` herr.kaste
2022-11-03 16:52     ` Erik Cervin Edin
2022-11-04  0:31 ` Victoria Dye
2022-11-04 10:40   ` Phillip Wood
2022-11-04 15:28     ` Victoria Dye
2022-11-04 16:57       ` [PATCH] rebase --update-refs: avoid unintended ref deletion Victoria Dye
2022-11-04 19:44         ` Taylor Blau
2022-11-04 20:17           ` Phillip Wood
2022-11-04 20:12         ` Phillip Wood
2022-11-07  2:39           ` Derrick Stolee
2022-11-07 17:47         ` [PATCH v2] " Victoria Dye
2022-11-07 19:17           ` Taylor Blau
2022-11-07 19:25           ` Derrick Stolee
2022-11-08  9:58           ` Phillip Wood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.