Giter Site home page Giter Site logo

git-training's Introduction

git-training

A few branches and commits to practice the rebase and branches

What to do?

  1. fetch the code!
$ git clone [email protected]:mart-e/git-training.git
$ cd git-training
$ git remote -v
origin	[email protected]:mart-e/git-training.git (fetch)
origin	[email protected]:mart-e/git-training.git (push)
$ git branch
* master
  1. fork it on your GitHub account

From the web interface, at https://github.com/mart-e/git-training

  1. Add your new remote
$ git remote add my_user [email protected]:my_account/git-training.git

What to rebase?

$ git branch -r
  origin/HEAD -> origin/master
  origin/master
  origin/rebase-withconflict
  origin/simple-rebase

Simple

  1. create a local fork of origin/master (e.g. my-master) and push it on your remote
  2. fetch the branch origin/simple-rebase
  3. rebase simple-rebase onto your master

Conflict

  1. fetch the branch origin/rebase-withconflict
  2. rebase rebase-withconflict onto your master (with simple-rebase already there)
  3. resolve the conflicts

git-training's People

Contributors

mart-e avatar

Stargazers

 avatar  avatar

Watchers

 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.