How to merge the code to the Github repository?

  • After opening the project and loading the folder structure, click on the ‘Source Control’ option

  • Click on ‘Initialize Repository’

  • Once the initialization process is complete, click on the ‘tick’ icon located next to Source Control

  • Click on ‘Yes’ for confirmation to commit

  • Enter a suitable commit name according to your requirement

  • Click on the "Add Remote"

  • Before proceeding to the next step, make sure to copy the URL of the repository, where you intend to merge your code

  • Provide the repository URL copied from above step into the section indicated below

  • Add any Remote Name

[The Remote Name serves as a folder in which your branches will be kept]

  • Once the commit is complete, click on the "Push" option

  • Confirm it by pressing Ok.  

  • Now, check GitHub to find that the code has been successfully pushed to the repository