How to proceed when having to apply an emergency Hotfix?

Asked

Viewed 47 times

0

If I’m working on a branch for a new feature and need to quit to create a Hotfix. How to proceed? Should I apply a "temporary" commit to the current branch or have another approach?

  • Sometimes I apply on the current branch and picked up by Cherry-pick on the master

1 answer

1

Use the command git stash

It serves exactly to save what you were doing, allowing you to do a Hotfix and then you resume typing:

git stash apply

You can even create more than one stash and can check the existing ones by typing:

git stash list

Browser other questions tagged

You are not signed in. Login or sign up in order to post.