git restore
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
git restore skedari e kthen skedarin si te commit-i i fundit (fshin ndryshimet e paruajtura — kujdes!). git restore --staged skedari e heq nga staging pa prekur ndryshimet.
EnglishEN
git restore file returns the file to how it was at the last commit (discarding unsaved changes — careful!). git restore --staged file removes it from staging without touching the changes.
Si ta mendosh
Si „Ctrl+Z“ deri te ruajtja e fundit.
Lexoje në anglisht
Like “Ctrl+Z” back to the last save.
Shembull kodibash
git restore --staged index.html
git restore index.html