Skip to content

Website Hints

Benjamin Garrett edited this page Jan 18, 2023 · 6 revisions

Open a Terminal Window

Windows

Type 'cmd' in the command bar to open the Command Prompt. Then you will have to change directories to where you downloaded the 'website' folder. For example, if you put it in Downloads/website, then type 'cd Downloads\website' and hit Enter.

Git Hints

Checkout a new branch

git checkout -b aBranchName

Add all modified files to staging

git add -u

Add specific file to staging

git add <filename>

Commit files

git commit

Push branch

git push origin aBranchName

Merge a custom branch to master and then publish master to the live website

git checkout master
git pull origin aBranchName
git push origin master