Skip to content

Commit de4b67f

Browse files
committed
Squash all method for cloning
Squash all method for merging updates not yet implemented
1 parent 26472cd commit de4b67f

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

SETUP.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,31 @@ Next you must clone `greenelab/manubot-rootstock` and configure its branches and
2525
git clone https://github.com/greenelab/manubot-rootstock.git $REPO
2626
cd $REPO
2727

28+
# Squash all manubot-rootstock commits
29+
git reset $(\
30+
GIT_AUTHOR_NAME="Manubot Rootstock Contributors" \
31+
GIT_AUTHOR_EMAIL="" \
32+
git commit-tree HEAD^{tree} \
33+
-m "Squash all manubot rootstock commits" \
34+
-m "From https://github.com/greenelab/manubot-rootstock/tree/`git rev-parse HEAD`" \
35+
)
36+
37+
# Create remote gh-pages branch
38+
git checkout --orphan gh-pages
39+
git rm -r --cached .
40+
git commit --allow-empty \
41+
--message "Blank branch instantiation commit" \
42+
--message "[ci skip]"
43+
44+
# Create remote output branch
45+
git branch output
46+
git checkout output
47+
48+
# Return to the master branch
49+
git checkout --force master
50+
2851
# Configure remotes and branches
2952
git remote add rootstock https://github.com/greenelab/manubot-rootstock.git
30-
git checkout gh-pages
31-
git checkout output
32-
git checkout master
3353

3454
# Option A: Set origin URL using its web address
3555
git remote set-url origin https://github.com/$OWNER/$REPO.git

0 commit comments

Comments
 (0)