#!/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"
IyEvYmluL2Jhc2gKdXJsPSdodHRwJydzOi8vZ2l0aHViLmNvbS9Qcm9qZWN0L25hbWUtYXBwLmdpdCcKdXJsPSIke3VybCMjKi99IiAjIFJlbW92ZSBhbGwgdXAgdG8gYW5kIGluY2x1ZGluZyBsYXN0IC8KdXJsPSIke3VybCUuKn0iICAjIFJlbW92ZSB1cCB0byB0aGUgLiAoaW5jbHVkaW5nKSBmcm9tIHRoZSByaWdodAplY2hvICIkdXJsIg==