I'd like to create a git alias that does stuff on a different branch than HEAD is on, and then switches back to the original branch. But I'm not sure if there's any way to remember the old branch. I tried using a tag:
git tag placeholder &&
git co master &&
git co placeholder &&
git tag -d placeholder
But this leaves me with a detached HEAD, rather than on the original branch.