I come from the SVN world so I might not get all the slight concept differences in GIT.
I have a origin/master branch. I have been tagging the master for a while. Then something that happened in production. A nasty bug that we need to fix.
So, I diligently switched (checkout) to a tag (let's call it prod-1.0). Then I created a branch. I modified my code, commited in origin/prod-1.0-hotfix. I then proceeded to push that branch to my remote.
Now a new bug was found in prod. I thought I could just checkout the branch 'prod-1.0-hotfix' but it turns out, it's not the code from 'prod-1.0-hotfix' but the code that was in origin/master at the time I pushed the branch to remote.
Can someone shed a light?