Version Control
Git: Moving ahead
Git: Moving ahead
  • Group 1
    • Resolving Merge Conflict
      • Create master
      • Create a branch
      • Merge them
  • Group 2
    • Branching Demo
      • Create issue53 branch
      • Commit a change
      • Check out master
      • Create a hotfix
      • Merge Hotfix
      • Delete the hotfix
      • Switch back to issue 53
  • Group 3
    • Adding Collaborators
      • Send invite
      • Accept Invite
Powered by GitBook
On this page
  1. Group 2
  2. Branching Demo

Create a hotfix

PreviousCheck out masterNextMerge Hotfix

Last updated 2 years ago

Create a hotfix branch

Now, you have a hotfix to make. Let’s create a hotfix branch on which to work until it’s completed:

git checkout -b hotfix

Implement the changes - whatever it takes to fix the bug and then committed like this

At this point, manually make some changes to the file and commit as below:

git commit -a -m 'C4'

Hotfix branch based on master

You can run your tests, make sure the hotfix is what you want, we will now proceed for merging.