add clone_gh function

This commit is contained in:
Shuvalov Anton 2014-10-08 02:39:23 +04:00
parent 96e4e5dd03
commit 09cbfa0a52

View File

@ -93,5 +93,12 @@ exist_gh() { # [DIRECTORY]
#
git.io() {curl -i -s http://git.io -F "url=$1" | grep "Location" | cut -f 2 -d " "}
# clone_gh [AUTHOR/NAME_OF_REPO] [DIRECTORY]
#
# use this when clone repo
clone_gh() { # [AUTHOR/NAME_OF_REPO]
git clone git@github.com:${1}.git ${2}
}
# End Functions #############################################################