`gh stack sync` can't be run anywhere in the repository
- Linguagem predominante
- Go
- Estrelas
- 1.5k
- Forks
- 70
- Merge médio
- 1d 8h
- PRs com merge (30d)
- 7
Descrição
If you're on a repository that uses Stacked PRs, but you're not on a branch that's currently stacked, you see:
```
% gh stack sync
✗ current branch "fix/number" is not part of a stack
Checkout an existing stack using `gh stack checkout` or create a new stack using `gh stack init`
```
This means that if you want to leverage `.git/gh-stack` as the internal state for what branches are available, you need to now go onto a stacked branch to sync.
There should be a way to sync without necessarily being on a stacked branch (for instance, if you want to make sure that your local branch is cleaned up after it's been merged)
Guia de contribuição
Direção de pesquisa
Comece pelo comando `gh stack sync` e inspecione como ele valida a branch atual, juntamente com o estado de `.git/gh-stack` usado por repositórios empilhados. Execute o comando a partir de uma branch que não faça parte de uma stack; estará concluído quando a sincronização puder prosseguir nela, incluindo a limpeza após uma branch local mesclada.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- go
- Domínio
- cli
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Ativa
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 68/100