We are using Git from one server. Same server is migrated to Azure.
After complete migration from current server to cloud server, I need to initialize git in cloud server with same GitHub repository which we were using in old server. Can anyone suggest some solution for this?
I have 3 example solutions:
- Remove the master branch in GitHub repo. push the code from cloud server to GitHub.
- Initialize git in cloud server and merge git and GitHub.
- When migrating code to cloud server. Migrate
.git
folder also.
Which solution is better from above 3? Or any other solution I can follow.