[go: up one dir, main page]

Skip to content

Custom item in the Clone Dropdown list

Release notes

For people with more than Gitlab account, it's necessary configuring different Hosts entries in the SSH configuration. This causes that the git URI in the clone dropdownlist, needs to be changed manually.

eg:

Host gitlab.com                                                                                                                                                                                
    hostname gitlab.com                                                                                                                                                                        
    user git                                                                                                                                                                                   
    IdentityFile ~/.ssh/id_rsa_gitlab_username1                                                                                                                                                
    IdentitiesOnly yes                                                                                                                                                                         
                                                                                                                                                                                               
Host gitlab.com.user2                                                                                                                                                                         
    hostname gitlab.com                                                                                                                                                                        
    IdentityFile ~/.ssh/id_rsa_gitlab_username2                                                                                                                                                  
    user git                                                                                                                                                                                   
    IdentitiesOnly yes                                                                                                                                                                         
                                  

Then, for the user2, you need to copy and edit before executing the clone to something like:

git clone git@gitlab.com.user2:org/folder/repo.git

It would be great to count with a custom additional URI in the dropdown list, customizable from the Profile's settings.

Screen_Shot_2020-12-19_at_14.33.30

Problem to solve

It is more a UX issue, on which it is necessary to change manually a URI that could be customized.

Intended users

Proposal

  • Option at Profile's settings that allows to add a custom git URI
  • Then, the custom URI will be used in the "clone repository" dropdown list for adding an additional item.

Further details