replace files with git checkout

revision e9a34ba9aa0d05e42b349fe578b978b4bb250fc7

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

History