Skip to content

Instantly share code, notes, and snippets.

@rfay
Forked from schacon/.gitconfig
Created April 12, 2011 04:12
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rfay/914906 to your computer and use it in GitHub Desktop.
Save rfay/914906 to your computer and use it in GitHub Desktop.
insteadOf Example for git.drupal.org
# Put this in your .gitconfig
[url "http://git.drupal.org/project/"]
insteadOf = "do:"
# And now you can clone a drupal project like this:
$ git clone do:views
Cloning into views...
remote: Counting objects: 29661, done.
remote: Compressing objects: 100% (9175/9175), done.
remote: Total 29661 (delta 22818), reused 26859 (delta 20372)
Receiving objects: 100% (29661/29661), 11.58 MiB | 952 KiB/s, done.
Resolving deltas: 100% (22818/22818), done.
@msonnabaum
Copy link

Awesome!

@shrop
Copy link

shrop commented Apr 13, 2011

Oh my! How awesome! Thanks Randy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment