Code Monkey home page Code Monkey logo

cosmolab-site-v2's Introduction

Cosmolab website

This website is hosted in this staging area: https://usc-cosmolab.github.io/cosmolab-site-v2 and is also linked from usc.cosmolab.edu. Changes made to this repository should be reflected at those links.

Contributing to the website

The following steps are required to edit and use this repository to make changes to our cosmolab website.

If contributing for the first time:

  1. Copy repo link from github:
    • click green code block
    • copy ssh link
  2. Clone to your computer
    • In a terminal, go to the directory/folder you want the repo in
    • type in terminal command:git clone paste-ssh-link-here

Subsequently:

  1. Create a new branch for you to code in
    • git checkout -b branch_name where branch_name is the name of the branch you wish to create
    • Can always call git status inside a git repo/directory to check up on your branch
  2. Make code/file/directory edits
    • For images, copy and paste an image to the cosmolab-site-v2/images directory
  3. Preview your changes with your browser, e.g.
    • firefox index.html
  4. Add your changes
    • git add /path/to/edited/files
  5. Commit your changes
    • git commit -m "Provide a note of what you changed here"
  6. Push your changes to github
    • git push origin branch_name
  7. Last steps! Create a pull request:
    • Go to our github: github.com/usc-cosmolab/cosmolab-site-v2
    • A message at the top of the page should appear, saying "branch_name had recent pushes"
    • Click "Compare & Pull Request"
    • Make sure you are comparing branch_name to base:main
    • Leave a comment and click "Create Pull Request"
  8. Wait on Kris/Vera to accept your PR (pull request)

Summary/Cheat sheet:

There are 5 commands you need to use, listed below.

git clone link-to-repo

git checkout -b branch_name

git add /path/to/file

git commit -m "comment addressing the changes you made"

git push origin branch_name

The logic is: Clone the repo to your machine. Checkout (create) a new working branch. Edit, then Add your changed files. Commit your changes. Push the changes to github. Creat a Pull Request via web interface at the end.

cosmolab-site-v2's People

Contributors

veragluscevic avatar msyriac avatar kpardo avatar maamari avatar remingtongerras avatar jkasaba avatar aryanrahimieh avatar treydriskell avatar wen-jams avatar ash2223 avatar bzh-bzh avatar eonadler avatar ruian1320 avatar jeissonpulido avatar dimple10 avatar gsbhargavir avatar juliexue1923 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.