Answer the question
In order to leave comments, you need to log in
How to pull changes to a subdirectory of a git repository by applying the remote version of the files?
I have a project with the following structure:
project
|----data
|----1.xml
|----2.xml
|----subprojects
|----subproject1
|----subproject2
git rm -r ${projectDir}/data
git read-tree --prefix=${projectDir}/data/ -u origin/master:${projectDir}/data
git commit -m "Updated ${projectName}"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question