代码拉取完成,页面将自动刷新
.PHONY: strip git-clean-nb_dirs-check
nb_dirs = dev_nb dev_course dev_swift
git-clean-nb_dirs-check:
@echo "\n\n*** Checking that everything under '$(nb_dirs)' is committed"
@if [ -n "$(shell git status -s $(nb_dirs))" ]; then\
echo "git status $(nb_dirs) is not clean. You have uncommitted git files (use git stash or git commit)";\
exit 1;\
else\
echo "git status $(nb_dirs) is clean";\
fi
strip: # strip out nbs, that were committed unstripped out, and commit+push
${MAKE} strip-try; \
${MAKE} strip-finally
strip-finally: # restore .gitconfig
tools/trust-origin-git-config -e
strip-try: git-clean-nb_dirs-check # try to strip out && commit
@echo "Stripping out nbs"
tools/trust-origin-git-config -d
git pull
tools/fastai-nbstripout dev_nb/*ipynb dev_nb/experiments/*ipynb
tools/fastai-nbstripout -d dev_course/*/*ipynb dev_swift/*ipynb
git commit -m "strip out nbs" $(nb_dirs)
git push
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。