githooks
Get the refname in post-receive hooks
I use git under window and I want do some operation after each push, so I use post-receive hook but when I try to get the refname to know the branch that is pushed I give anything.[详细]
2023-04-12 20:12 分类:问答Copy unversioned file after git push
I have a local repository where I work daily and a remote bare repository where I push my result. I would like after every push to copy some local files that are not under version control (like .exe a[详细]
2023-04-11 20:04 分类:问答Why doesn't setting GIT_WORK_TREE work in a post-commit hook?
I\'m trying to use the following post-commit hook to deploy to a particular directory a开发者_StackOverflowfter each successful commit:[详细]
2023-04-10 05:33 分类:问答Deploy Haskell code that uses the Snap Framework
What\'s your experience with deploying Haskell code for production in Snap in a stab开发者_运维百科le fashion?[详细]
2023-04-06 23:48 分类:问答How to test current commit and not the working tree?
I am trying to set up a pre-commit hook to test my project before any commit goes through, but I can\'t find how to make sure that only HEAD (with patches from the current commit) are tested and not t[详细]
2023-04-06 13:36 分类:问答Deploying a website to multiple environments with git
Currently I deploy a project to production with git, using git push production master to a repository with the following post-receive hook:[详细]
2023-04-06 09:14 分类:问答How is it possible to use raw_input() in a Python Git hook?
I am writing a pre-commit hook for Git that runs pyflakes and checks for tabs and trailing spaces in the modified files (code on Github). I would like to make it possible to override the hook by askin[详细]
2023-04-05 09:25 分类:问答How to write an update hook for git submodules?
I would like to copy some files in the submodules in my \"vendor/assets\" directory to another 开发者_StackOverflow中文版directory -- \"public/assets.\" I heard about update hooks but I am not sure if[详细]
2023-04-04 00:41 分类:问答Find Git branch name in post-update hook [duplicate]
This question already has answers here: 开发者_运维技巧Writing a git post-receive hook to deal with a specific branch[详细]
2023-04-03 09:29 分类:问答Git post-merge hook, how to get name of merged branch
I\'m trying to create post-merge hook script which runs only when merging from specific branch. How can I determine name of the branch changes came from for specific commit?[详细]
2023-04-02 02:43 分类:问答