githooks
Can a git hook be used to replace passwords before staging, adding, or pushing?
Can a git hook be used to replace passwords before staging, adding, or pushing? I want passwords to be replaced by templates before committing or pushing.[详细]
2023-03-02 09:41 分类:问答How do I react to new tags in git hooks?
I\'d like to set up a git hook that creates a CDN-style directory structure based on incoming tags. So, for example, if the last tag in the local repository is \"v1.2.1\" and I pull a commit with \"v1[详细]
2023-03-01 07:17 分类:问答How to set up a Git hook so that after pushing to ssh://peter@foo.com/~/bar.com.git, it will go to ~/bar.com and do a git pull?
I was advised to set up on a remote server foo.com/~/bar.com# live webpage content foo.com/~/bar.com.git# a bare repo[详细]
2023-02-28 14:52 分类:问答Gitosis post-receive hook to deploy repository getting public key errors
I have gitosis setup on my server and I\'m trying to create a post-receive hook that will checkout changes to a working directory on the remote machine.[详细]
2023-02-20 06:36 分类:问答git add hook / getting git to ignore file modes of new files
I\'m working with a git repository on both windows and linux/mac.When I create new files on windows, or edit them in some text editors, the file mode is changed to 775.I can get git to ignore file mod[详细]
2023-02-17 03:16 分类:问答why it is not possible to git add .git/hooks/my-hook
I would like to have some hooks always present in a clone of a given repository. Is there a way to add a file in .git/hooks in the repository?[详细]
2023-02-14 02:50 分类:问答How to capture a git commit message and run an action
I\'m new to git and I want to be able to capture the commit message after a push to the origin/master and run a bash script (on the server) based on what the string contains.[详细]
2023-02-08 04:43 分类:问答Can a git pre-commit hook add a file to the repo?
I\'m keeping a text file of my git log in my working directory, and I have a script that updates it after a commit. This is fine, but the effe开发者_运维百科ct of this is that the version that is insi[详细]
2023-02-07 03:49 分类:问答What is the best way to write a git update hook that rejects invalid submodule commits?
I am attempting to write an update hook for git that bounces if a submodule is being updated to a commit ID that does not exist in the submodule\'s upstream repository. To say it another way, I want t[详细]
2023-02-05 20:35 分类:问答Symbolic link to a hook in git
I wrote my own custom post-merge hook, now I added a \"hooks\" directory to my main project folder (since git doesn\'t track changes in .git/hooks), somewhere I read that I can make a symbolic link fr[详细]
2023-02-02 02:46 分类:问答