Skip to content
Ryunosuke O'Neil edited this page Apr 21, 2020 · 7 revisions

Welcome to the STMDAQ wiki!

Getting Started

  1. Fork this repository ('Fork' button in top right)

  2. git clone your fork and cd to it:

git clone git@github.com:<your username>/STMDAQ.git
cd STMDAQ
  1. Add the main repository as a remote:
git remote add mu2e git@github.com:mu2e/STMDAQ.git

Not working? SSH authentication problems? See here.

Making changes

  1. In your local clone of your fork, create a new branch off master.
cd STMDAQ
git checkout -b my-feature master

# 'publish' your branch
git push -u origin my-feature
  1. Make changes, commits, etc...
# add files you wish to commit
git add <files>

# when you're ready to commit changes
git commit -m "<commit message>"

# make sure your changes are pushed to your fork
git push
  1. Open a Pull Request from your fork branch to the Mu2e/STMDAQ master branch here.

  2. PR merged? Great - however, don't reuse the same branch! Do this and start over from step 1.

git checkout master

# bring your fork up-to-date with mu2e/master
git pull mu2e master

# go back to step one

This workflow is based on the workflow at the mu2e wiki..

Clone this wiki locally