Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Squash all commits cloning method #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,31 @@ Next you must clone `greenelab/manubot-rootstock` and configure its branches and
git clone https://github.com/greenelab/manubot-rootstock.git $REPO
cd $REPO

# Squash all manubot-rootstock commits
git reset $(\
GIT_AUTHOR_NAME="Manubot Rootstock Contributors" \
GIT_AUTHOR_EMAIL="" \
git commit-tree HEAD^{tree} \
-m "Squash all manubot rootstock commits" \
-m "From https://github.com/greenelab/manubot-rootstock/tree/`git rev-parse HEAD`" \
)

# Create remote gh-pages branch
git checkout --orphan gh-pages
git rm -r --cached .
git commit --allow-empty \
--message "Blank branch instantiation commit" \
--message "[ci skip]"

# Create remote output branch
git branch output
git checkout output

# Return to the master branch
git checkout --force master

# Configure remotes and branches
git remote add rootstock https://github.com/greenelab/manubot-rootstock.git
git checkout gh-pages
git checkout output
git checkout master

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