#!/bin/bash
url='http''s://github.com/Project/name-app.git'
url="${url##*/}" # Remove all up to and including last /
url="${url%.*}"  # Remove up to the . (including) from the right
echo "$url"