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?
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?
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