Spaces:
Running
Running
HF_REPO=/tmp/hf-croissant | |
echo "Deleting $HF_REPO..." | |
rm -rf ${HF_REPO} | |
git clone git@hf.co:spaces/marcenacp/croissant-editor ${HF_REPO} | |
echo "Copying files from $PWD to $HF_REPO..." | |
# find . -maxdepth 1 ! -path "README.md" ! -path "*node_modules*" ! -path "*__pycache__*" -exec cp -r {} ${HF_REPO} | |
rsync -aP --exclude="README.md" --exclude="*node_modules*" --exclude="*__pycache__*" . ${HF_REPO} | |
cd ${HF_REPO} | |
echo "Now push with: 'cd $HF_REPO && git add && git commit && git push'." | |