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 :: copy file to remote server 
Shell :: bash while 
Shell :: bash output to stdout and file 
Shell :: install insomnia in ubuntu 
Shell :: how to reduce the size of an image in linux 
Shell :: git pull with username and password linux 
Shell :: create group in linux command example 
Shell :: linux bash if else 
Shell :: git Automatic merge failed; fix conflicts and then commit the result 
Shell :: How to Block Ports in UFW Ubuntu Firewall 
Shell :: debian change default kernel 
Shell :: bash: /usr/local/bin/firebase: Permission denied 
Shell :: awk field separator 
Shell :: visual studio export installed nuget pacjkages 
Shell :: bash get public ip 
Shell :: if file not exists 
Shell :: linux how to make makefile 
Shell :: how to delete all ufw rules 
Shell :: tar extract command windows 
Shell :: sudo gem install cocoapods-deintegrate cocoapods-clean 
Shell :: install vlc on fedora 
Shell :: display settings ubuntu 20.04 in right side 
Shell :: sed replace word with newline 
Shell :: echo to add line to file 
Shell :: add colab to github 
Shell :: git revert remote branch 
Shell :: git fetch 
Shell :: imagemagick compare pdf 
Shell :: This script makes a backup of my home directory. 
Shell :: bash alias with parameter 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =