git repo path, bash, regex

wild card, you have to use a backlash for the period

git --git-dir=./.git config --get remote.origin.url | sed -e "s/ssh:\/\/.*\+:\([0-9]\+\|\)\///"

Leave a Reply

Your email address will not be published.