Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git pull master discard local changes

git reset --hard origin/master
git pull origin master
Comment

git remove my local changes and pull from master

git reset --hard <your commit hash key>
Comment

PREVIOUS NEXT
Code Example
Shell :: ssh restart ubuntu 
Shell :: npm show registry 
Shell :: firewalld not running centos 7 
Shell :: install java 17 ubuntu 
Shell :: serial number linux 
Shell :: clearing dns cache 
Shell :: stop port 3000 mac 
Shell :: pip install tqdm 
Shell :: nginx stop commands 
Shell :: display nginx logs 
Shell :: linux how to get fqdn 
Shell :: install yarn globally 
Shell :: uninstall pgadmin3 ubuntu 
Shell :: install gem ubuntu 
Shell :: brew reinstall mysql 
Shell :: how check status docker in ubuntu 
Shell :: How to add username and password in github 
Shell :: git graph 
Shell :: install nano ubuntu 
Shell :: stop nginx mac 
Shell :: Preprocessor dependency "sass" not found. Did you install it? 
Shell :: jango.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module 
Shell :: git show graph command line 
Shell :: how to remove git from project 
Shell :: upgrade django version 
Shell :: undo last git commit 
Shell :: Scan new disk in linux 
Shell :: git temporarily ignore changes to tracked file 
Shell :: pycharm ubuntu install 
Shell :: how to uninstall git in ubuntu 18.04 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =