Joined May 2012

Víctor Martínez


Posted to Shorter Git URLs over 1 year ago

Or you can add an alias in your ~/.gitconfig:

[url ""]
  insteadOf = gh://

and execute:

git clone gh://knoopx/repo

@konamax123 yes you need to create it and make it executable chmod +x your-git-repo/.git/hooks/post-commit. The content of the file is the ruby code posted on the protip.

@konamax123 Git post-commit hook is at your-git-repo/.git/hooks/post-commit. Make sure you chmod +x it,

2,323 Karma
101,160 Total ProTip Views