After you have run a migration with the ELM CLI tool, there are some follow-up tasks to complete.
Restore users' access
Because GitHub Enterprise Server and GHE.com use different provisioning and authentication systems, organization membership is not carried over between platforms. You will need to add users to the organization before you can reattribute activity to them in a migrated repository.
- If you created a new organization for the migration process, add members to the organization. You can do this manually, but many enterprises manage organization membership from their identity provider (IdP) by syncing enterprise teams with IdP groups.
- Add organization members to the migrated repositories.
Reattribute activity to users
Après avoir exécuté une migration avec GitHub Enterprise Importer ou Enterprise Live Migrations, toutes les activités utilisateur dans le référentiel migré (à l’exception des validations Git) sont attribuées aux identités d’espace réservé appelées mannequins. For more information, see Mannequins et activité de l’utilisateur.
Once user accounts have been added to the organization on GHE.com, you can invite users to reclaim a mannequin's activity. You can do this in the browser or, with the ELM CLI tool, reclaim mannequins in bulk without the invite process.
Reclaiming mannequins in bulk using the ELM CLI
You can use the ELM CLI to reclaim mannequins in bulk.
-
Generate the list of mannequins in the migration. The following command produces a CSV file that maps mannequins to organization members. Optionally, to include mannequins that have already been reclaimed, add the
--include-reclaimedflag.Shell gh target mannequin list ORGANIZATION_NAME
gh target mannequin list ORGANIZATION_NAMEThis will produce a CSV file of all mannequins in the target organization, in the form
mannequin-user,mannequin-id,target-user:ghe-admin,M_kgDOAAw-zw, unit-test,M_kgDOAA5FYg, admin-octoshift,M_kgDOAA5FZw, -
Output the command to a file that you can edit.
Shell gh elm target mannequin list ORGANIZATION_NAME > MANNEQUINS.csv
gh elm target mannequin list ORGANIZATION_NAME > MANNEQUINS.csv -
Edit the CSV file, adding the username of the organization member that corresponds to each mannequin. Ensure you save the file after you edit it.
-
Reclaim mannequins using the
mannequin reclaimcommand. Use the ORGANIZATION_NAME and filename from the previous step.Shell gh target mannequin reclaim ORGANIZATION_NAME --csv MANNEQUINS.csv
gh target mannequin reclaim ORGANIZATION_NAME --csv MANNEQUINS.csv
For a full reference of the reclaim command, including options to control invitations and prompting, see Enterprise Live Migrations CLI reference.
Reclaiming mannequins in the browser
-
Dans le coin supérieur droit de GitHub, cliquez sur votre photo de profil, puis sur Vos organisations.
-
Sélectionnez une organisation en cliquant dessus.
-
Sous le nom de votre organisation, cliquez sur Settings. Si vous ne voyez pas l’onglet « Paramètres », sélectionnez le menu déroulant , puis cliquez sur Paramètres.

-
Dans la section « Accès » de la barre latérale, cliquez sur Importer/exporter.
-
À droite du mannequin que vous souhaitez récupérer, cliquez sur Réattribuer.
-
Dans le champ de recherche, tapez le nom d’utilisateur du membre d’organisation auquel vous souhaitez attribuer les contributions du mannequin, puis cliquez sur le membre.
Remarque
Vous pouvez uniquement envoyer des invitations d’attribution aux comptes d’utilisateur qui sont déjà membres de l’organisation.
-
Cliquez sur Invite. Par défaut, le membre de l’organisation recevra une invitation par e-mail, et le mannequin ne sera pas récupéré tant que le membre n’aura pas accepté l’invitation.
Reattribute Git activity
L’attribution des auteurs pour les commits Git n’est pas associée aux mannequins et ne peut pas être attribuée aux utilisateurs de GitHub en récupérant des mannequins. Au lieu de cela, la paternité des commits est attribuée aux comptes d’utilisateur sur GitHub, en fonction de l’adresse e-mail utilisée pour créer le commit dans Git.
To reattribute Git activity on GHE.com, ensure the user's primary email address in your identity provider (IdP) matches the email address used for their commits. With Enterprise Managed Users, users cannot add email addresses to their user account on GitHub, so users will not be able to reattribute their Git commits independently.
Recreate organization settings
If you created a new organization for the migration process, restore settings such as policies, organization teams, and projects.