Giter Site home page Giter Site logo

otb-academy's Introduction

On The Beach Academy

Dependencies

Setup

Clone this repository:

$ git clone https://github.com/threedaymonk/otb-academy.git

Change directories so that you're in the project:

$ cd otb-academy

Exercises

The classes will consist of various exercises. Each exercise will be in a subfolder of this directory, and should contain a README with more information.

During the class we will from time to time update the master branch with new exercises or progress. So while we work on an exercise, you should make periodic commits saving your work, but DO NOT commit any changes to the master branch, instead work in your own local branches.

So if we are working on the bottles you would

$ git checkout master

Create a new branch to keep your work on the exercise

$ git checkout -b my-bottles-working

Change to the bottles directory and work on the problem

$ cd bottles

When you want to save your work, stage and commit changes:

$ git add . # the dot is important
$ git commit -m "Explain your change"

When we start working on a new exercise - or are moving forwards with this problem, save your work as about, and then switch back to master.

$ git checkout master

Pull the latest version from GitHub:

$ git pull origin

Then create another new branch to work on the next thing:

$ git checkout -b my-bottles-working-2

Git: Troubleshooting / Recovery

Throw it all away

If you have gone down a blind alley, and you just want to start over, git makes it easy to clean up and start again.

First of all make sure git knows about all of your files:

$ git add .

Then throw away the changes:

$ git reset --hard HEAD

You will find you are back at clean directory, where you last committed.

Did you commit to master by mistake?

Make a branch to keep all your changes:

git branch my-working-branch

Make sure you've got the latest version from GitHub

git fetch origin

Then tell git to create a new copy of master, throwing away the old one:

$ git reset --hard origin/master

otb-academy's People

Contributors

dan-brooks-otb avatar threedaymonk avatar tooky avatar

Watchers

James Cloos avatar Dan Brooks 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.