How do I proceed with applying an emergency hotfix?

0

If I'm working on a branch for new functionality and need to sign out to create a hotfix. How to proceed? Should I commit a "temporary" commit on the current branch or would it have another approach?

    
asked by anonymous 12.03.2018 / 22:44

1 answer

1

Use the git stash

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

git stash apply

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

git stash list

    
12.03.2018 / 22:55