-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with a Locally Hosted Git #14
Comments
I need this as well, any help? |
Hey guys yes it should work with locally hosted git as well |
you just need to add it to your post commit hook in locally created git repository |
Exactly. Post-recieve hooks run after a remote gets updates. Post-commit runs after each commit. For some reason, however, my post-commit is not working. |
@Brendonwbrown is the hook not executing, or is the script not behaving as expected? |
I'm also interested in this. I've put the whole code in
there seems no |
I think you will need to write a wrapper script to be called from either 'commit-msg' or 'post-commit' - see https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks |
Yes, seems so. At this point the question is what we need to pass over to the original script, as arguments, in order to start the while loop? Thanks for feedback. |
According to some other hooks: oldrev newrev refname oldrev will be previous commit, newrev latest commit and refname will be Met vriendelijke groet, |
Would this work with a git repo that is hosted locally? I have this working on a server that I own but I recently started a new project that I'm working on only locally, any chance this could work that way ?
The text was updated successfully, but these errors were encountered: