Posts

Showing posts from September, 2022

Git Workflows

Image
  What is git workflow: A set of guidelines developers can follow when using version control Referred to as a Branching Model Not rules, but guidelines which are not set in stone. Different types of workflow Centralized/trunk based Workflow Feature Branch Workflow Release Branch workflow Gitflow Workflow Environment Branching  Forking Workflow Details of git workflow : Click here Gitflow Command: Git flow init Initialize git flow. After that two branches are created master and develop Git flow feature start feature_branch Start to create the feature branch Git flow feature finish feature_branch Finish the feature branch. Then it automatically merges with the develop branch and deletes itself. Git flow release start 0.1.0 Start to create release branch Git flow release finish 0.1.0 After fixing bug it will merge the branch with master and developer

Git cheat sheet

Creating Snapshots Initializing a repository git init Staging files git add file1.js                          # Stages a single file git add file1.js file2.js           # Stages multiple files git add *.js                                  # Stages with a pattern git add .                                         # Stages the current directory and all its content Viewing the status git status                # Full status git status -s             # Short status Committing the staged files git c...