how to get repository name in git code example
Example 1: how to check the repository name in git
git config --get remote.origin.url
Example 2: git name repository
basename `git rev-parse --show-toplevel`
git config --get remote.origin.url
basename `git rev-parse --show-toplevel`