Add branch name to "Clone" links when viewing non-default branch
Proposal
Will be good to add branch name to "Clone" links in Gitlab UI when viewing non-default branch. Because it's not obvious for many newbies that if they clone the git repository by this link, they will got a default branch instead of that they are viewing now. This is because clone links don't contain branch name.
For example here https://gitlab.com/gitlab-org/gitlab/-/tree/create-namespace-details-table we have such links:
Clone with SSH: git@gitlab.com:gitlab-org/gitlab.git
Clone with HTTPS: https://gitlab.com/gitlab-org/gitlab.git
But much better to show links to clone the branch directly (as replacement to current, or additionally to them:
Clone branch with SSH: git@gitlab.com:gitlab-org/gitlab.git --branch create-namespace-details-table
Clone branch with HTTPS: https://gitlab.com/gitlab-org/gitlab.git --branch create-namespace-details-table
So users will can easily run commands like this:
git clone git@gitlab.com:gitlab-org/gitlab.git --branch create-namespace-details-table
Because now it's not so easy to even copy-paste current branch name from the interface area: we have it only in dropdown list, where it isn't copy-paste-able! So, alternatively, will be good at least add "Copy current branch name" functionality anywhere.