Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git revert uncommitted changes

# Revert changes to modified files.
git reset --hard

# Remove all untracked files and directories.
# '-f' is force, '-d' is remove directories.
git clean -fd
Comment

git uncommit last commit but keep changes

# https://stackoverflow.com/a/44672195/3013522
git reset --soft HEAD~
Comment

revert uncommitted changes git

git reset
git checkout .
git clean -fdx
Comment

PREVIOUS NEXT
Code Example
Shell :: brave browser download for linux 
Shell :: ubuntu install brave 
Shell :: docker splunk 
Shell :: git origin set branch 
Shell :: overall configuration gzip compression with nginx 
Shell :: bash if "-n" option 
Shell :: install npm colors 
Shell :: bash division integer 
Shell :: conda install keyboard 
Shell :: discord linux 
Shell :: check if service is running server 
Shell :: hoe to install LAMP on ubuntu 
Shell :: terminal git add ssh key 
Shell :: nohup output file 
Shell :: convert cer to crt linux mint 
Shell :: how to reset source list ubuntu 
Shell :: linux move all files to another folder 
Shell :: git diff how to exit 
Shell :: git create new branch from current 
Shell :: get filename from path powershell 
Shell :: what is pipe line command in linux? 
Shell :: linux generate file of size 
Shell :: docker redis 
Shell :: cuda install in ubuntu 
Shell :: how to revert a merge locally 
Shell :: git tutorial 
Shell :: surge flutter web 
Shell :: how to enable camera in ubuntu 
Shell :: how to add key pair to ec2 instance terraform 
Shell :: react native ubuntu 20.04 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =