Joined May 2012
·
Ecc4d502278ae77354564beb97bdff10

Víctor Martínez

Barcelona
·
·
·

Posted to Shorter Git URLs over 1 year ago

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

[url "https://github.com/"]
  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,

Achievements
2,323 Karma
100,290 Total ProTip Views