forked from AllenInstitute/AllenSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy_notes.txt
31 lines (27 loc) · 854 Bytes
/
deploy_notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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://[email protected]/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