- Colin Ophus Lab – Group Website Repository
If you have any questions, please don't hesitate to reach out to @bobleesj.
- Fork this repository by clicking the
Forkbutton on https://github.com/ophusgroup/landing. This will create a new repository under your account athttps://github.com/<your-username>/landing. - Open your terminal window.
- Clone your forked repository to your local machine by running:
The term
git clone https://github.com/<your-username>/landingoriginrefers to the forked repository on GitHub. "Clone" essentially downloads theoriginrepository in the cloud to your local machine. - Verify that the
originremote is connected by running:The termgit remote -vremoterefers to the repository hosted on GitHub, it could behttps://github.com/ophusgroup/landingorhttps://github.com/<your-username>/landing
- Run
git branchto see which branch you are currently on. You should be on themainbranch. In general, avoid making direct updates tomain, as it is considered the "final" version. - Create a new branch based on
mainby running:git checkout -b <branch-name> - Open your preferred IDE (e.g., Visual Studio Code) and edit the files as needed.
- After making changes, run
git statusto see which files have been modified. - Stage the changes by running:
You can add multiple files or folders at once if needed.
git add <file-or-folder-modified> - Commit your changes with a clear and concise message, for example:
git commit -m "Add John Doe to people section" - Push your branch to your forked repository on GitHub:
Visit your forked repository URL to confirm the changes have been uploaded.
git push --set-upstream origin <branch-name>
- Go to https://github.com/ophusgroup/landing and click the green
Compare & pull requestbutton. - Create a pull request from your branch to the
mainbranch of the original repository (ophusgroup/main) from<your-username>/<branch-name>. - Write a concise title for your pull request, such as "Add John Doe as a new member," and submit the PR.
- Tag a reviewer for your pull request.
- Wait for your pull request to be reviewed and merged.
- Once merged, congratulations! The website will be automatically updated.
It is assumed that you have already completed the first tutorial above. First, we want to sync with the latest changes from the original repository.
- Add the
upstreamrepository, which refers to https://github.com/ophusgroup/landing, by running:git remote add upstream https://github.com/ophusgroup/landing - Type
git remote -vto check that you have bothoriginandupstreamlisted. - Run
git checkout mainto switch to themainbranch of the repository in your local machine. - Run
git pull upstream mainto pull the latest commits/changes from theupstreamrepository where other people may have contributed. - Run
git checkout -b <another-branch-name>and start editing files. - Run
git add <file-or-folder-modified>andgit commit -m "<commit-message>", then finally:to upload the changes to yourgit push --set-upstream origin <another-branch-name>originforked repository on GitHub. - Visit https://github.com/ophusgroup/landing, make a pull request, and wait for it to be reviewed and merged.
- Activate the relevant conda environment in your terminal window.
- Fork this repository and clone your fork.
- Run
npm install -g curvenoteto install Curvenote. - Run
curvenote startto start the server.
- When a new commit is made to the
mainbranch, a GitHub Action will automatically run and deploy the changes.
- The repo uses a
.prettierrcconfig file at the project root to control Prettier. - Install and run:
- npm install (installs dev deps including prettier)
- npm run format # auto-fix files
- npm run format:check # check only