Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the .git/sequencer directory?

I found a directory named .git/sequencer

Here is its contents:

$ ls
head  todo
$ cat head
d7d462cf3c0896aa09b3dec020cb21d4c4407d91
$ cat todo 
pick d7d462c Initailise repository
pick b88c8bb bash_funcs: add quote_args()

These pick lines make it look like it's the remnants of a rebase or cherry-pick, however:

$ git rebase --abort
No rebase in progress?

Can I safely remove this directory?

like image 395
Tom Hale Avatar asked Sep 21 '16 15:09

Tom Hale


1 Answers

This looks like the remnants of an incomplete git revert.

I used git revert --quit and the directory disappeared.

The git-revert documentation mentions this directory:

SEQUENCER SUBCOMMANDS

--continue Continue the operation in progress using the information in .git/sequencer. Can be used to continue after resolving conflicts in a failed cherry-pick or revert.

--quit Forget about the current operation in progress. Can be used to clear the sequencer state after a failed cherry-pick or revert.

--abort Cancel the operation and return to the pre-sequence state.

like image 200
Tom Hale Avatar answered Oct 15 '22 22:10

Tom Hale