-
Notifications
You must be signed in to change notification settings - Fork 5
Home
Stephen Cleary edited this page Jun 4, 2018
·
15 revisions
Follow these steps to create a new project/repo based on this template. It is assumed that the project name has one or more periods, e.g., Faithlife.Xyz
, and the repo name does not, e.g., FaithlifeXyz
. In the instructions below, replace these terms with your project's/repo's name as appropriate.
# clone the template repo
git clone git@github.com:Faithlife/CSharpTemplate.git FaithlifeXyz
# remove the template repository as the origin (a new origin will be added later)
cd FaithlifeXyz
git remote rm origin
git checkout -b master
git branch -D template
\\dev\util\FindReplaceCode\FindReplaceCode . ProjectName Faithlife.Xyz RepoName FaithlifeXyz
git add -A
git commit -m "Globally replace template placeholder strings."
# create a new branch with no content
git checkout --orphan gh-pages
git rm -rf .
git clean -fdx
# initialize with the template's docs
git remote add template git@github.com:Faithlife/CSharpTemplate.git
git fetch template
git reset --hard template/gh-pages
# customize the template
\\dev\util\FindReplaceCode\FindReplaceCode . ProjectName Faithlife.Xyz RepoName FaithlifeXyz
git add -A
git commit -m "Replace documentation template placeholder strings."
- Create a new repository at https://github.com/Faithlife.
- Click the button to add a team; add Coders with Admin permission.
- Click the button to add collaborators; add faithlifebuildbot with Write permission.
- Click Options; disable Wiki and Projects.
# add the origin; the exact URL to use is at the GitHub repo main page
git remote add origin git@github.com:Faithlife/[RepoName].git
git push -u origin gh-pages
- Go to https://travis-ci.org/.
- Click
+
next to "My Repositories". - Click Faithlife on the left.
- Click Sync account button in top right.
- Find FaithlifeXyz in the list and enable it.
- Go to https://ci.appveyor.com/projects.
- Click New Project.
- Find FaithlifeXyz in the list and click the Add button that appears on the far right on hover.
git checkout master
git push --set-upstream origin master
- Go back to the repo settings page
- Under Branches:
- Change default branch to
master
; click Update - Select
master
under Protected Branches and check Protect this branch.