Code Monkey home page Code Monkey logo

git-flow-sandbox's People

Contributors

glostis-prl avatar glostis avatar

Watchers

 avatar

git-flow-sandbox's Issues

Description of the problem

The Git graph of this repository

%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'showBranches': true, 'showCommitLabel':true,'mainBranchName': 'master'}} }%%
gitGraph
  commit id: "Add feature-1"
  branch develop
  branch feature-2
  commit id: "Add feature-2"
  checkout develop
  merge feature-2 id: "Add feature-2 (#1)"
  checkout master
  branch hotfix-1
  commit id: "Add hotfix-1"
  checkout master
  merge hotfix-1 id: "Add hotfix-1 (#2)"
  checkout develop
  merge master id: "Backport hotfix-1 to develop (#3)"
Loading

What steps were taken?

  1. Initialize repository:
    mkdir git-flow-sandbox
    cd git-flow-sandbox
    git init
    touch feature-1
    git add feature-1
    git commit -m 'Add feature-1'
    git remote add origin [email protected]:glostis/git-flow-sandbox.git
    git push origin master
  2. Create branch develop:
    git checkout -b develop
    git push origin develop
  3. Merge a feature to develop:
    git checkout -b feature-2
    touch feature-2
    git add feature-2
    git commit -m 'Add feature-2'
    git push origin feature-2
    On Github, open and "squash and merge" a PR from branch feature-2 to develop: #1
  4. Merge a hotfix to master:
    git checkout master
    git checkout -b hotfix-1
    touch hotfix-1
    git add hotfix-1
    git commit -m 'Add hotfix-1'
    git push origin hotfix-1
    On Github, open and "squash and merge" a PR from branch hotfix-1 to master: #2
  5. Backport the hotfix to develop:
    On Github, open and "squash and merge" a PR from branch master to develop: #3
  6. Notice that Github does not see that develop is not behind master anymore:
    On Github, open a PR from branch master to develop: #4. The diff still shows hotfix-1, even though it was backported to develop in the previous PR.

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.