Skip to content

Instantly share code, notes, and snippets.

@bohdantrotsenko
Created November 28, 2020 12:55
Show Gist options
  • Save bohdantrotsenko/455862e0569307fb5cb7ffa6fe7d0904 to your computer and use it in GitHub Desktop.
Save bohdantrotsenko/455862e0569307fb5cb7ffa6fe7d0904 to your computer and use it in GitHub Desktop.
#!/bin/bash
comp=$(echo $1 | awk -F'[/:]+' '{ sub("^github.com\.", "", $2); print $3 }')
repo=$(echo $1 | awk -F'[/:]+' '{ sub("^github.com\.", "", $2); print $4 }')
git clone $1 ${comp}_${repo}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment