All of lore.kernel.org
 help / color / mirror / Atom feed
* rebase --abort Unespected behavior
@ 2020-02-28 17:36 Blaise Garant
  2020-02-29 14:28 ` Phillip Wood
  0 siblings, 1 reply; 4+ messages in thread
From: Blaise Garant @ 2020-02-28 17:36 UTC (permalink / raw)
  To: git

Hello,

I don't know if this is a bug but it was unexpected for us. I
accidentally added untracked files through a `git add .` while doing
an interactive rebase and aborting the rebase deleted those files. Is
this to be expected?

To reproduce:
mkdir test_folder
cd test_folder
git init
touch first
git add .
git commit -m 'First'
echo 1 >> first
git add .
git commit -m 'Second'
echo 2 >> first
git add .
touch second
git commit -m 'Third'
git rebase -i HEAD~2 #set second to be edited
git add .
git status        #second should have staged
git rebase --abort
ls        #second has been deleted

Not sure this is an expected behavior.
Thanks
Blaise Garant

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

end of thread, other threads:[~2020-03-04 20:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-28 17:36 rebase --abort Unespected behavior Blaise Garant
2020-02-29 14:28 ` Phillip Wood
2020-02-29 15:51   ` Elijah Newren
2020-03-04 20:55     ` 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.