My team is using a very simple Git workflow. Everybody develops in the same branch. I'd like to know which are the series of commands I should do when I'm in the middle of the work and need to fix a bug.
Here is my situation:
- Unpushed commited changes in my local master branch
- Uncommited modified files
- need to fix a bug in origin/master branch
- I don't have another branch attached to master
- need to push just these files that fix the problem
- go back to work
Se that I'm working in the same branch of my coworkers.
Some users pointed that git stash
would solve it and so this is a duplicate question. I dispute it, since I didn't even know that this feature existed. The feature solves my problem, but I believe the question is valid since I ask it from another point of view.