Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to revert uncommitted changes including files and folders?

# If you want to revert the changes only in current working directory
git checkout -- .

# discard anything (note: you have to be in the directory
# where all of the changes are located)
# or you can use the command on line 9, you can discard anything
# on the repo
git checkout -- *
git checkout -- :/

# or if you check the git status message after modifying a file 
# there is this command 
git restore <file>
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu install certbot apache 
Shell :: get jq command 
Shell :: batch run command in new terminal window 
Shell :: update git version 
Shell :: how to check bash runs with sudo 
Shell :: descomprimir tar gz 
Shell :: how to find where a program is on windows 
Shell :: linux dir one line 
Shell :: git fetch prune 
Shell :: install avro on linux ubuntu 
Shell :: kill occupation port windows 
Shell :: how to safely remove partner modules magento2 
Shell :: ngxcountup 
Shell :: ubuntu history select 
Shell :: show rights inside folder debian 
Shell :: heroku set app name from cli 
Shell :: kill a process on ubuntu 
Shell :: ffmpeg resize video 
Shell :: change directory cmder 
Shell :: libevent ubuntu install 
Shell :: how delete all wine files in linux 
Shell :: install git on wsl2 ubuntu 
Shell :: errno 2 no such file or directory less 
Shell :: git clone submodule 
Shell :: angular create a service 
Shell :: docker compose v2 install 
Shell :: remove user from sudoers 
Shell :: apt find package 
Shell :: youtube dl download playlist by index 
Shell :: extract bz2 linux 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =