1.

Explain the steps to work on any production issue in GIT

Answer»

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

  • Step 1: We will create a LOCAL branch for developing any feature /bug which will 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 locally 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 can move to merge the changes in the production branch.
  • step 5:  Now you can move to the production branch
    • $ git checkout productionbranch

Switched to branch productionbranch 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)


Discussion

No Comment Found