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 :: download sublime text ubuntu 20.04 
Shell :: linux monitor outgoing https requests 
Shell :: open calculator from command line MacOS 
Shell :: git remove files from repo but not locally 
Shell :: how to enable the Visual Studio Code GitHub Support and set a Personal Access Token 
Shell :: no matching manifest for linux/arm64/v8 in the manifest list entries mac 
Shell :: debian install openjdk 
Shell :: find or locate pip (s) path 
Shell :: linux auto suspensd stop 
Shell :: maven test skip 
Shell :: add remote branch git 
Shell :: how to config username and email in git 
Shell :: docker permission denied dial 
Shell :: remove all containers docker 
Shell :: install rollup locally 
Shell :: git add and commit all 
Shell :: composer upgrade to 2 
Shell :: how to unadd gitr file 
Shell :: installing a downloaded package in ubuntu 
Shell :: scp from remote to local 
Shell :: cmd kill pid 
Shell :: what to do with unstaged changes after reset 
Shell :: how to logout in linux kali 
Shell :: How To Install the Apache Web Server on Ubuntu 18.04 
Shell :: remove migration 
Shell :: how to install spark on macos 
Shell :: ng generate service 
Shell :: specify origin git 
Shell :: how to install as dev dependency 
Shell :: git merge develop to feature branch 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =