Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git restore

# Get back all changes to local head branch
git restore -W .
Comment

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.
Comment

git restore

git restore "PATH"
Comment

PREVIOUS NEXT
Code Example
Shell :: install ripgrep windows 
Shell :: powershell delete all files wit hextension 
Shell :: install grub efi 
Shell :: bash zip file without parent directory 
Shell :: fetch from remote branch 
Shell :: git push to my work 
Shell :: pull file from specific commit git 
Shell :: bitnami wordpress enable ssh 
Shell :: github as database 
Shell :: terraform download 
Shell :: find ubuntu usb port tty 
Shell :: how to check linux is ubuntu or centos 
Shell :: install cypress for nextjs 
Shell :: generate zip file terminal 
Shell :: upload file ssh terminal 
Shell :: extracting tar.gz 
Shell :: window reset wifi cmd 
Shell :: mySQL root password config 
Shell :: sed replace with variable 
Shell :: react redux install 
Shell :: odoo 14 install ubuntu 20.04 
Shell :: ubuntu bash script exit when error 
Shell :: docker logs path 
Shell :: if statement bash 
Shell :: jest for react 
Shell :: mount is fstab 
Shell :: unzip a file terminal 
Shell :: abbreviated stat for git 
Shell :: df command linux concepts 
Shell :: dracula theme gnome terminal 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =