replace files with git checkout

raw

README.rst

search terms:

  • inject git in unversioned files
  • add git checkout in unversioned files
  • git clone non-empty directory

Solution

git init
git remote add origin git@example.org/repo.git
git fetch
git reset origin/master

git status
git diff
git checkout sites/all/themes/mytheme/

Solution: https://stackoverflow.com/questions/2411031/how-do-i-clone-into-a-non-empty-directory

Christian Weiske Christian Weiske
owner

History