加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
deploy_notes.txt 854 Bytes
一键复制 编辑 原始数据 按行查看 历史
# list remotes
git remote -v
# add named remotes
git remote add gh-allensdk https://github.com/AllenInstitute/AllenSDK.git
git remote add ai-allensdk http://timf@stash.corp.alleninstitute.org/scm/inf/allen_wrench.git
cd allen_wrench
git checkout dev
make clean
mkdir -p doc/_build
cd doc/_build
git init
git clone -b gh-pages https://github.com/AllenInstitute/AllenSDK.git html
cd ../..
make doc
cd doc/_build/html
git add --all
git commit -m 'documentation deploy'
git push github gh-pages-test
# delete a remote branch
git push origin --delete gh-pages-test
# Roll back a pushed commit:
git reset HEAD^ # remove commit locally
git push origin +HEAD # force-push the new HEAD commit
refs/heads/gh-pages:refs/remotes/github/gh-pages
refs/heads/dev:refs/remotes/origin/dev
if you get into trouble:
git reset --hard origin/dev # remote tracking branch
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化