“Desfazer mudanças não agendadas git” Respostas de código

Descartar mudanças sem fossas git

#For all unstaged files in current working directory use:
git checkout -- .
#For a specific file use:
git checkout -- path/to/file/to/revert
Proud Peafowl

Git Excluir arquivos sem fossas

git clean -df
Fancy Fox

O que fazer com mudanças não agendadas após a redefinição

git rm --cached -r .
Helpless Hamster

Desfazer mudanças não agendadas git

git checkout -- .
Modern Moth

Git descarte arquivos sem fossa

git stash save --keep-index --include-untracked
Kasmin Nicko

Respostas semelhantes a “Desfazer mudanças não agendadas git”

Perguntas semelhantes a “Desfazer mudanças não agendadas git”

Mais respostas relacionadas para “Desfazer mudanças não agendadas git” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código