Giter Site home page Giter Site logo

branching_tut's Introduction

Branching tutorial

Get your own copy of the repository

  1. In GitHub, fork nrsiward/branching_tut to your account
  2. Clone branching_tut from your account to your local disk

Implementing a new feature

  1. Create branch feature1 (to implement a new feature)
  2. Change line 2 in file1.txt

Making an urgent bug fix at an inconvenient time

  1. Stash
  2. Change back to branch master (to make a bug fix before the feature is done)
  3. Edit line 3 and line 4 in file1.txt
  4. Stage and commit

Finishing the new feature

  1. Change to branch feature1
  2. Pop the stash
  3. Change line 4 in file1.txt (to finish implementing the feature)
  4. Stage & commit

Merge the new feature

  1. Change to branch master
  2. Merge branch feature1
  3. Resolve conflicts

Share with others

  1. Push

Clean up the uneeded branch

  1. Delete local branch feature1
  2. Push the branch deletion

branching_tut's People

Contributors

nrsiward avatar

Watchers

James Cloos avatar David Raymond 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.