Stay hungury, stay foolish

Migrating a code repository but retaining committing history

Objective ​Here, we aim to move a code repository from platform A to platform B completely, but keep the commiting history at the same time. It works for the code repository platforms using git like Github. Steps We take migrating a code repository from Gitlab (source platform) to Github (destination platform) as an example. Create a new project on the destination platform On Github, we create a new empty project with the same name as the source repository (It also works for a new name).