Git Aliases
Wed, May 16, 2018I’ve just created two new git aliases that allow me to do things like
git hub ocaml/ocamland
git lab charlesetc/dotfilesto clone the respective repositories.
It’s a bit easier than typing out git clone [email protected]:ocaml/ocaml and much more fun :)
These lines in your ~/.gitconfig should get it working.
[alias]
hub = "!f() { git clone [email protected]:$1; }; f"
lab = "!f() { git clone [email protected]:$1; }; f"