Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git revert all local changes

git reset; git checkout .; git reset --hard HEAD; git clean -fdx; 
git fetch --all; git pull
Comment

git discard all local changes

git restore .
Comment

git undo all changes

use "git restore <file>..." to discard changes in working directory
use "git restore --staged <file>..." to unstage
Comment

PREVIOUS NEXT
Code Example
Shell :: epub to pdf converter ubuntu 
Shell :: download adobe reader linux 
Shell :: git copy branch to another branch 
Shell :: golang protobuff installation 
Shell :: find bashrc 
Shell :: zsh: command not found: rvm 
Shell :: restart cronjob 
Shell :: files to 644 folder to 775 
Shell :: make zsh for all users 
Shell :: locale-gen fa_IR.UTF-8 ubuntu 
Shell :: install xrdp ubuntu 18.04 
Shell :: create a ssh key 
Shell :: shutdown from command prompt windows 7 
Shell :: cent os mariadb remove complete 
Shell :: see all ADS in a file 
Shell :: Do you want to accept these changes and continue updating from this repository? 
Shell :: warp out files in linux 
Shell :: polyblog install command 
Shell :: run elasticsearch stop 
Shell :: add desktop entry ubuntu 
Shell :: uninstall edb postgres mac 
Shell :: terminal command uninstall android studio 
Shell :: get the latest file in a directory powershell 
Shell :: npm install globally 
Shell :: Verificação de acesso de escrita [/srv/moodle/lib/editor/atto/plugins] Instalação abortada devido a falha de validação 
Shell :: ubuntu watch log file command 
Shell :: vestacp wordpress permissions 
Shell :: where skype saves file in linux 
Shell :: gitignore template eclipse 
Shell :: this error may indicate that the docker daemon is not running 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =