# Get remote URL, assumes ssh remote=$(git config --get remote.origin.url)
# Replace some parts remote=${remote/git@github.com:/} remote=${remote/\.git/}
# Today today=$(date +%d-%m-%Y)
# Final URL url="https://github.com/$remote/releases/new?target=main&tag=$next&title=Deploy%20$today"
# Output to screen echo$url
# Mac OSX copy to clipboard with pbcopy ( which pbcopy >/dev/null 2>&1 ) && echo"$url" | pbcopy && echo"[+] Copied to clipboard"
# Linux copy to both the selection buffer and clipboard with xclip. ( which xclip >/dev/null 2>&1 ) && echo"$url" | xclip -i -sel c -f |xclip -i -sel p && echo"[+] Copied to clipboard"