Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git checkout specific file types only

# BASH (Non-Fish compliant script)
git checkout origin/master -- `git ls-tree origin/master -r --name-only | grep ".pex"`
Comment

git checkout specific file types

# You don't need find or sed, you can use wildcards as git understands them (doesn't depend on your shell):
git checkout -- "*.xml"

# The quotes will prevent your shell to expand the command to only files in the current directory before its execution.
# You can also disable shell glob expansion (with bash) :

set -f
git checkout -- *.xml

# This, of course, will irremediably erase your changes!
Comment

PREVIOUS NEXT
Code Example
Shell :: accept input linux 
Shell :: debug for windows powershell 
Shell :: https local 
Shell :: git pelak 
Shell :: how to analyse a git repo 
Shell :: ubuntu cmd file last modified time 
Shell :: terminal command set audio volume 
Shell :: copy paste keys vim 
Shell :: mac find command printf 
Shell :: resume stopped job linux 
Shell :: nvm use auto install 
Shell :: find bahs 
Shell :: install airflow spark 
Shell :: log by date 
Shell :: linux var with special charactors 
Shell :: keytool list certs java 
Shell :: invert 
Shell :: printing from command line filters pipelines 
Shell :: Let NetworkManager manage all devices on wsl 2 
Shell :: detach other user from monitor linux command 
Shell :: kubernetes short call 
Shell :: hashcat-6.1.1.7z by kali linux 
Shell :: chemin absolu tcpdf sur serveur 
Shell :: kali linux disable root command 
Shell :: install react suite 
Shell :: reuse an old git branch name after merge 
Shell :: i dont have pip, hoow to install pandas 
Shell :: fix merge conflict in package-lock.json 
Shell :: autoreconf: command not found 
Shell :: stop all docker machiens 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =