Streams of thought by...

This is the (tumble) log by Innerfusion, I'll post various things about code, design, politics, or whatever is interesting at the moment.

8/12/2010
1:15pm
Go back home
Comments (View)

git-export

I recently needed to grab a git repository, but I had no interest in cloning it or putting it into my current project as a submodule. What I wanted was a simple way to export the repository like you can with svn using svn export. I looked around for a solution, but couldn’t find one that I felt behaved exactly like svn export. So I decided to write my own git-export command, once installed you can simply run:

  git-export [git-repository-url] [optional destination]

What it does is actually pretty simple, it just clones the repository and removes the .git directory. That’s all I needed it to do, no more, no less, you can add this to your git arsenal by grabbing a set of git utilities that I forked at : http://github.com/vanntastic/git-utils , install instructions are provided on the readme.

Posted in: git commands git-export

Notes

  1. innerfusion posted this