Skip to content

Instantly share code, notes, and snippets.

@bhachauk
Created March 29, 2018 11:43
Show Gist options
  • Save bhachauk/ec74ae71556424d2cb54f3dde2a3724c to your computer and use it in GitHub Desktop.
Save bhachauk/ec74ae71556424d2cb54f3dde2a3724c to your computer and use it in GitHub Desktop.
Git_Commands
String getreponame(String url)
{
String gitname = ("basename $url").execute().getText().trim()
return gitname.take(gitname.lastIndexOf('.'))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment