How can I have an empty file that will indicate which git branch is currently active, and make this work with git?
Repositories I work with have often several branches (ie: dev -> stage -> live).
Ideally, I would want to have something like an empty file named "_BRANCH_NAME" in the root, that will show me all the time on which branch am I working.
I have been playing with this and separate .gitignores
, but without any luck because branches should merge at certain point.
Is this possible? Is there anything else I can do to mimic this?
Thanks!