Code Monkey home page Code Monkey logo

git-flow's Introduction

Git Flow

Description

  • General development will have two main branches: master (main) and develop. Main is the online version used by customers and cannot be changed at will. And develop is similar to the alpha version, which is tested by internal personnel. It will be merged into main if there is no problem
  • Local refers to your own computer, and remote refers to the place where the code is placed on the Internet (Github, Bitbucket)

Process

Switch to the development branch before developing new features: git checkout develop

  1. Local: Development branch
    • Synchronize the content of local and remote branches: git pull (similar to synchronizing cloud drives)
    • Open a new branch: git checkout -b <Docking 7-11 Super Fetching Service> (to avoid developing multiple functions at the same time and creates confusion)
  2. Local: new branch
    • Develop new features
    • View branch file modification status: git status
    • Add changes to the cache: git add .
    • Confirm the modification and give a summary: git commit -m "Complete the docking 7-11 super fetching service"
    • Synchronize the content of local and remote branches: git push or git push --set-upstream origin xxx
  3. Remote: Github.com
    • Open a Pull Request (PR) to merge the new branch into the development branch
    • Colleagues view and give feedback
    • Merge into development branch
  4. Local: new branch
    • Switch to the development branch: git checkout develop
    • Go back to step 1

git-flow's People

Contributors

maxyzli 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.