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

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -