Monday, April 11, 2022

Git - Create Remote branches

 Once you are having different branches on the local Repository then you can push the code changes to respective branches on Github so that developers can download/upload the code into their respective branches.

Step 1: Push the changes of the main branch to Github Repo

          git status  

          git push origin main

       There will be the main branch and the latest code of the local main branch should be on Github's main branch.

Step 2: Create a branch (consider sdev1 has a local branch) on Github using the local Repository.

         git push origin sdev1

         git push origin jdev1

        git push origin jdev2

Step 3: Check on the repository all the branches should be created.


Post a Comment