attilagyorffy.com

TIL: Git URL shortcuts to github, heroku and others

Introduction

Attila Györffy

Attila Györffy

I'm a Ruby/JS dev/trainer with a focus on quality. An ex-Londoner, @terracycle, @ubxd, @lastfm. Follow me at http://twitter.com/attilagyorffy


productivity til git

TIL: Git URL shortcuts to github, heroku and others

Posted by Attila Györffy on .
Featured

productivity til git

TIL: Git URL shortcuts to github, heroku and others

Posted by Attila Györffy on .

Git provides a mechanism to reference URLs during git commands. People usually use these to enforce HTTPS connections instead of using the git protocol.

With a bit of creativity, one might turn these into shortcuts to github, Heroku, and other git hosts. This allows us to clone repositories using the following shortcut:

To achieve this, you can configure your git client in the $HOME/.gitconfig file. I have the following configuration:

Attila Györffy

Attila Györffy

https://attilagyorffy.com

I'm a Ruby/JS dev/trainer with a focus on quality. An ex-Londoner, @terracycle, @ubxd, @lastfm. Follow me at http://twitter.com/attilagyorffy

View Comments...