create a temporary branch name with git
问题 Slightly related to this question I'd like to work with a temporary branch in a shell script. somewhat along the lines of : cd $(git rev-parse --show-toplevel) && git subtree split --prefix=some_subfolder -b temp && git push my_remote temp:publication_branch -f Now, I'm not sure what this will do if the branch temp already exists, in any case I don't want the result on my_remote/publication_branch to depend on that. And I also don't want to modify the branch temp (assuming I have it for