git current repository name 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`