“Git Command Line Buang Perubahan” Kode Jawaban

git membuang perubahan lokal

# 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 Buang Perubahan

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

Jawaban yang mirip dengan “Git Command Line Buang Perubahan”

Pertanyaan yang mirip dengan “Git Command Line Buang Perubahan”

Lebih banyak jawaban terkait untuk “Git Command Line Buang Perubahan” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya