Giter VIP home page Giter VIP logo

git-demo's Introduction

Git Demo How to use git command

Flow:

  • Developer create feature branch from dev branch for develop feature code
  • After develop from feature branch finish , Developer will merge feature branch to dev branch
  • Source code in dev branch will deploy application by pipeline to dev environment for testing
  • And when need to deploy application to sit environment, Deveoper will merger dev branch to main branch and tag version at main branch
  • Source code that tag version will deploy application by pipeline to sit environment for testing

Clone Initial code

for start develop new application, clone source code from repository

git clone xxxx.git

Create new branch (dev) if not exist

After clone source code, normally it will start from main or master branch. So first need to create dev branch before to not existing

git branch dev

Checkout dev branch

Chenge working branch to dev branch

git checkout dev

Create branch feature from dev

Create feature base on dev branch for develop code

git branch feature/test

Check out feature branch

Change working branch to feature branch

git checkout feature/test

Update code on feature branch after update finish

After devlope code finish in feature branch, push code back to feature branch on repository

git push

Merge feature to dev

Update dev branch, merge feature branch to dev branch

git checkout dev 
git merge feature/test
git push

Merge dev to main

If application on dev envrionment running ok and need to deploy to sit enviroment, merge dev branch to main branch

git checkout main
git merge dev
git push

git-demo's People

Contributors

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