Joined May 2012
·

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
111,289 Total ProTip Views