What are the steps to work on any production issue in git?

0 votes
I have a requirement for a change that needs to be made on production in Git. What are the steps that I should follow?
Nov 26, 2019 in Git & GitHub by anonymous
• 9,500 points

1 answer to this question.

0 votes

Let's go through the steps to understand flow in case we are working on any production issue :

Step 1: we'll create a local branch for developing any feature /bug which can be a child branch inherited from the production branch.

The below command will create headerissue branch locally on which developer would work and fix production issues.

git checkout -b headerissue production branch

We can check the branches existing regionally by running below command.

step 2: git branch -List  all branches existing locally. You can progress the changes by running below command

step 3: git status- To see any changes in the branch

step 4: Once you are done with changes committing changes locally not remotely.

Once unit testing and release testing gets completed, you'll be able to move to merge the changes within the production branch.

step 5: Now you can move to the production branch

$ git checkout productionbranch

Switched to branch production branch and merge the changes once

$ git merge --no-ff headerissue (merging with issue branch)
$ git branch -d headerissue(delete local branch)
$ git push origin productionbranch (pushing issue fix in production branch)
answered Nov 26, 2019 by Sirajul
• 50,480 points

Related Questions In Git & GitHub

0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

Having problem in Github and remote Git repo with production and development code

I think you could start with this. The ...READ MORE

answered Apr 10, 2018 in Git & GitHub by shubham
• 6,910 points
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
0 votes
1 answer
0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2, 2019 in Git & GitHub by Sirajul
• 50,480 points
0 votes
1 answer

Are the commands git stash apply and git stash pop the same?

They are almost similar except the fact ...READ MORE

answered Nov 25, 2019 in Git & GitHub by Sirajul
• 50,480 points