Horje
git checkout specific file types only Code Example
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"`
Source: newbedev.com
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!\




Shell

Related
git credential manager Code Example git credential manager Code Example
git credential manager linux codegrepper Code Example git credential manager linux codegrepper Code Example
clear tracked files from git Code Example clear tracked files from git Code Example
build .so file Code Example build .so file Code Example
how to empty text file in unix Code Example how to empty text file in unix Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
17