Horje
git restore file Code Example
git reset one file
git checkout HEAD -- my-file.txt
git restore file
git restore --source=c5f567 file1/to/restore file2/to/restore # restore files to how they were in the commit with the hash listed in --source
what does git restore do
The "restore" command helps to unstage or even discard uncommitted
local changes.

One the one hand, the command can be used to undo the effects of
git add and unstage changes you have previously added to the Staging
Area.

On the other hand, the restore command can also be used to discard local
changes in a file, thereby restoring its last committed state.
git restore
git restore "PATH"




Shell

Related
install alacritty ubuntu Code Example install alacritty ubuntu Code Example
kill screen sessions Code Example kill screen sessions Code Example
linux count files in subdirectories Code Example linux count files in subdirectories Code Example
list which process is running on specific port ubuntu Code Example list which process is running on specific port ubuntu Code Example
install mongodb on mac Code Example install mongodb on mac Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12