Skip to content

Getting started with your Web Development

Paige Maute edited this page Oct 14, 2021 · 2 revisions

Downloading what you need

GitHub

If you’re not part of the team for CSO’s GitHub, contact the Project Manager or another Board member if they are not available.

GitHub Desktop

Open the application and sign into your GitHub account. Once logged in, the program should prompt you to start by adding a repo. Pick clone repo if you are pulling the website repo for the first time.

You should be able to see all of the repositories, but clone the website repo and make a local path for it where you'll know where it is. Ex: D:/CSO/website Once cloned you can pull the dev branch from origin and create a new branch for you to get started with. You can call this new branch YourName NO APOSTROPHIES SHAWN

Continue to next step

GitBash

Within' the website repo on GitHub, in the code tab you should see a green button dropdown also labeled Code. Copy the HTTPS link, save it somewhere if you need. Open GitBash!

I recommend you configurate a username and email here:

git config --global user.name YourNameHere
git config --global user.email YourEmail@Here.org

Navigate to the location you would like to store your project. You can do cd Desktop to save it to Desktop or your own path like cd D:/CSO. Then clone the repository and once cloned, go into the project:

git clone https://github.com/esu-cso/website.git
cd website
fetch origin

From here you would want to check out dev, pull that branch, and create a new branch from that one. Here are some useful commands or a Cheat Sheet:

//View all existing local branches (put -r at the end to see remote branches)
git branch

//Switches to a different branch
git checkout dev

//Pulls any updates from the repo (for that branch checked out)
git pull

//Make a new branch
git checkout -b NewBranchName

//Stage your changes
git add .

//Commit your changes to your branch
git commit -m "This is the message of my commit"

//Push your changes to your branch
git push

Continue to next step

Clone this wiki locally