Nuacht
Want to unstage a file in Git? Use the restore command. Other options to have Git remove a file from the staging index have unintended consequences you'd really rather avoid.
How to undo a staged Git file The proper way to undo the git add command is to use git restore. This will unstage your files, essentially undoing any previously issued git add commands.
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana