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
• 19,610 points
1,502 views

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
• 59,230 points

Related Questions In Git & GitHub

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

error: The branch 'dev1' is not fully merged.If you are sure you want to delete it, run 'git branch -D dev1'.

Hi@akhtar, When you create one new branch in ...READ MORE

answered May 10, 2020 in Git & GitHub by MD
• 95,460 points
3,139 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,061 views
+2 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
• 59,230 points
1,619 views
0 votes
2 answers

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

The key difference in is the fact ...READ MORE

answered Jun 17, 2020 in Git & GitHub by Cameron
• 140 points
9,293 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP