Generate file on git branch create -
every time new branch specific prefix (e.g. "release/...") created, need perform action. server-side update hook, client-side handling not sufficient considering requirement.
the action need perform reading contents of file (lets call a.txt) in git branch. file present, not have affected commit or similar. need generate new file (b.txt) based on contents of read file , add generated file (a.txt) newly created branch.
so outcome this:
git-root | +---release/1.5.6 | +---somedirectory +---a.txt // file need read +---b.txt // generated git-hook is possible , if yes, how can achieve this?
Comments
Post a Comment