Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git discard local changes

# Discarding local changes (permanently) to a file:
git checkout -- <file>

# Discard all local changes to all files permanently:
git reset --hard
Comment

remove local changes git

git fetch  # will fetch the latest changes on the remote
git reset --hard origin/master # will set your local branch to match the representation of the remote just pulled down.
Comment

git discard all local changes

git restore .
Comment

PREVIOUS NEXT
Code Example
Shell :: install xmake 
Shell :: unable to install deno in ubuntu 
Shell :: bash zip command not found 
Shell :: linux reload hosts file 
Shell :: get current timestamp shell 
Shell :: Error: ENOSPC: System limit for number of file watchers reached 
Shell :: get wifi password windows 10 
Shell :: how to install yarn 
Shell :: install traceroute ubuntu 18.04 
Shell :: laravel routes not working on production 
Shell :: how to add windows to grub 2 
Shell :: cpu core command linux 
Shell :: list all users linux 
Shell :: install rpm ubuntu 
Shell :: linux groups show name, password, id, members list 
Shell :: bash: /usr/local/bin/docker-compose: No such file or directory 
Shell :: bash firebase command not found 
Shell :: linux memory usage 
Shell :: linux install vi 
Shell :: install youtube-dl in ubuntu 
Shell :: how to push code on bitbucket 
Shell :: formik npm 
Shell :: install vlc on ubuntu 
Shell :: ubuntu ifconfig get only ip address 
Shell :: ubuntu get pid of process 
Shell :: change brightness ubuntu 20.04 
Shell :: find skip permission denied messages 
Shell :: raspberry config command line 
Shell :: code server install 
Shell :: change user in git repository 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =