This sounds like something outside the responsibility of Git.
You could instead make a script that does the things you want. Either a
simple shell- and/or bat-script, or use a real build tool like Rake, Gradle
or something like that. It depends on your target platform really, and what
you are trying to do.
At our place we do semi-automated releases using
our CI server, which does the cloning-git-repo part, and then triggers a
Java build (combining Maven/Ant/Gradle) to build the artifact and copies it
onto a fileserver accessible from the places we want to deploy it.
A very useful part of the automation is that a build is triggered by a Git
hook, as soon as someone pushes to the central Git repository. So a few
minutes after pushing, there's a new release lying on the fileserver ready
On Sunday, June 24, 2012 1:31:02 PM UTC+2, xtranophilist wrote:
> I was curious if any git command exists to automate things by fetching a
> repo and executing a script within it. I am using git-subtree now and i am
> very much impressed with how git can be extended with such hacks to add
> custom powerful functionalities.
> Most of the times when we are releasing our code, we have to publish
> installation instructions in the README file or in our blog posts. These
> instructions are usually a set of shell commands most probably starting
> from a git clone.
> Something like 'git install http://github.com/user/repo.git' would fetch
> the repo and execute instructions from the file .gitinstall available in
> the repo. So the user doesn't need to do git clone, ./configure, make, etc.
> Does something like this already exist? Would creating such git command be
> a good idea or are there better alternatives?
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To view this discussion on the web visit
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at