Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git command line discard changes

git clean -dxn .  # dry-run to inspect the list of files-to-be-removed
git clean -dxf .  # REMOVE ignored/untracked files (in the current directory)
git checkout -- . # ERASE changes in tracked files (in the current directory)
Comment

PREVIOUS NEXT
Code Example
Shell :: npm install --save-dev @angular/cli@latest 
Shell :: display/search for a commit hash name in a git log 
Shell :: shell script iterate over characters in string 
Shell :: remove port iptables 
Shell :: cli kill what is listening on port 
Shell :: bash find text in specific file 
Shell :: how to delete command from terminal history 
Shell :: unix history date time 
Shell :: split string and create array bash 
Shell :: how to upgrader vscodium 
Shell :: how to untrack files in git 
Shell :: bash replace string 
Shell :: ubuntu take screenshot with cursor 
Shell :: openssh linux mint 
Shell :: how to install older version of tensorflow 
Shell :: install radeon drivers ubuntu 
Shell :: how to set git password 
Shell :: kafka confluent download 
Shell :: add python to path zsh 
Shell :: run sh with parameter 
Shell :: search package linux 
Shell :: apt update package 
Shell :: making a service provider in laravel 
Shell :: wsl ubuntu update time 
Shell :: read string by string in file in linux 
Shell :: Command to install tailwind plugin in vue 
Shell :: wsl2 taking much memory 
Shell :: tomcat shutdown script 
Shell :: strapi run command 
Shell :: td-agent restart 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =