Giter Club home page Giter Club logo

calculator's Introduction

Calculator

An example repository used at Git workshops.

Contains very simple “application”, a calculator, in HTML/CSS/JS, making it trivial for attendees with different programming backgrounds to focus on the Git domain, not on the code domain, during the workshop.

Our imaginary scenario in the workshop is this one:

How to make a hotfix while working on feature when the main line is moving

The repository contains four branches:

  • master — The main line of development. You cooperate with others on this branch.
  • feature — The “feature branch” for the imaginary scenario.
  • hotfix — A branch for making a “hotfix” in the imaginary scenario.
  • new_design — A branch with updated GUI in our imaginary scenario.

The simplified scenario for the feature part is:

$ git checkout -b feature
$ git add .
$ git commit -m "TMP: Feature"

When the request for hotfix comes in, this is the simplified scenario:

$ git checkout master
$ git checkout -b hotfix
$ git add .
$ git commit -m "Fixed vulnerability"
$ git checkout master
$ git pull
$ git merge hotfix
$ git push origin master

To continue work on feature, we can return where we were previously:

$ git checkout feature
$ git reset HEAD^

Please refer to the PDF handout for full scenarios and information.

calculator's People

Contributors

karmi avatar

Stargazers

Dinesh Kr. Choudhary avatar

Watchers

Dinesh Kr. Choudhary avatar  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.