Tagged Questions

Git hooks are scripts that fire when certain events transpire in git. Events include, but are not limited to, pre- and post-commit and pre- and post-rebase on the client-side, and post-receive-commit on the server-side. Hooks can be written in most any scriptable language, including ruby, perl, ...

In a project where for instance a parser is involved, some source code is the product of a program. For instance yacc generates - based on a .yy file, a source code file that implements the parser.
...

This has to do with using git's push.default matching setting from git < 2.0. Also, forking the repo in this particular instance is not applicable. We use github at work and since it does not allow ...

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: ...

I have gitosis deployed on a remote server. The server will host a largish and growing number of repos, each of which will function as the master repo for a small project. All projects are related and ...

I'm using git with my team and would like to remove whitespace changes from my diffs, logs, merges, etc. I'm assuming that the easiest way to do this would be for git to automatically remove trailing ...

I have a web app on Github whose servers are provisioned with Hosted Chef server and Cloudformation. After searching the net for the last couple of hours with no luck, can someone give some insight ...

I am used to subversion, where the collaborate group would receive an email whenever someone commits.
Is there a similar feature on GitHub, so the people working on the repository receives an email ...

Pivotal Tracker and Github have great integration: Once it's set up, each commit which is prefixed by the Pivotal Tracker ID will appear under the corresponding Pivotal Ticket automatically, for an ...

I have written simple shell script to throw "success and failure message" and placed it under .git/hooks/ with all proper permissions. I want to call this script as a post-receive. But the script is ...

My scenario is as follows:
we have a gitlab set up for our team where we do all of our development with branches etc, etc. We also have an official repo hosted by our company where we would like to ...

Gentlemen, there is a situation completely unknown to me.
My git hook is a node script created with grunt-githooks, and it bumps an app version by spawning a grunt script with corresponding commands, ...

I am trying to setup a pre-receive hook in github that I used to use on STASH. In STASH, I had a pre-receive hook that used to enforce "A custom commit message that should have a JIRA number included ...

I'm developing a site in Wordpress that I’ve built a template and a plugin for. For my git workflow, I'd like to be able to track the template and the plugin separately with two different repos on the ...

I have configured msysgit on Windows as a server over HTTP. I have configured Apache server to forward the requests to git-http-backened.exe. When I cloned and tried to push to the server from remote ...

I want to know, how exactly does git review command work? I mean does it use git push command (internally) or something else to upload the changes to gerrit. This information would be useful for me ...

I want to run a pre-push job on all un-pushed local commits.
git rev-list BRANCH --not --remotes=origin works great for all cases except when the remote you're pushing to is empty. When that is the ...

I have a pre-push hook (which very closely resembles the example pre-push commit which comes with git) which checks for a specific string in commit messages and doesn't push if it's found.
If I make ...