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?
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?
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 git
You are not signed in. Login or sign up in order to post.
Sometimes I apply on the current branch and picked up by Cherry-pick on the master
– Jefferson Quesado