“GIT Command Line Discard Change” Ответ

git отбросить локальные изменения

# Discarding local changes (permanently) to a file:
git checkout -- <file>

# Discard all local changes to all files permanently:
git reset --hard
Friendly Fox

GIT Command Line Discard Change

git clean -dxn .  # dry-run to inspect the list of files-to-be-removed
git clean -dxf .  # REMOVE ignored/untracked files (in the current directory)
git checkout -- . # ERASE changes in tracked files (in the current directory)
Prickly Polecat

Ответы похожие на “GIT Command Line Discard Change”

Вопросы похожие на “GIT Command Line Discard Change”

Больше похожих ответов на “GIT Command Line Discard Change” по Shell/Bash

Смотреть популярные ответы по языку

Смотреть другие языки программирования