githooks
Export and import database on Git push and pull
I need my database to be in sync across two local computers, without using a server in between. After some research I thought I could use Git hooks to do the task for me.[详细]
2023-04-01 19:02 分类:问答How to install hooks in gitolite
I\'ve read all the documentation about hooks, similar questions and a lot of code but I can\'t track where is the error in my procedure. I need to install a simple hook in my gitolite installation (ma[详细]
2023-03-31 19:32 分类:问答Skip Git commit hooks
I\'m looking at a G开发者_如何学运维it hook which looks for print statements in Python code.If a print statement is found, it prevents the Git commit.[详细]
2023-03-31 06:23 分类:问答How can a post-receive hook written in perl get the branch name?
I have a post-receive hook that is written in perl.I need to be able to figure out which branch is being pushed to.How can I do this?I tried looking at @ARGV and $ARGV[2] without su开发者_如何学Python[详细]
2023-03-30 11:19 分类:问答How to have git disregard unstaged changes on a post/pre-commit hook
I am trying to do the commit should pass all tests to succeed automation in my rails project. The problem is that I use git add --patch quite a lot before I commit and I want my tests to only run on t[详细]
2023-03-24 06:22 分类:问答How (and where) should a hook be defined to autoupload a website to production?
I have a central server acting as a git server, and I push my changes from another pc. I work in parallel with another developer, too. He prepared a hook in the git server so when we pushed it pulls a[详细]
2023-03-17 09:27 分类:问答Egit hooks do not get triggered
I have a git repo with a pre-commit hook that intentional开发者_如何学Goly fails 100% of the time.[详细]
2023-03-11 10:13 分类:问答execute git command inside bash script
I am writing gitosis post-push hook for central repository which pulls updates from central repository to testing enviroment[详细]
2023-03-08 11:26 分类:问答Execute PHP from GIT post-update hook
I am using GIT on my server and I am trying to get a PHP file to be executed each time I update my repo开发者_如何转开发sitory. I\'m trying to use my post-update hook to achieve this.[详细]
2023-03-06 03:04 分类:问答Is there a hook which updates $Id$ in files on clone/pull?
I have a bare (remote) GIT repository with the several users blessed to commit there. On repository clone/pull I want that each source file which contains magic $Id:$ is expanded to smth. like: $Id: &[详细]
2023-03-04 03:05 分类:问答