Friday, 20 July 2018

Steps to Checkin code on GitHub

1) Take latest of the master branch

   If taking the code for the very first time use following command
   git clone master_url or git clone git@github.dxc.com:insurance/Riskmaster.git commit_id

   if the code is already taken from URL/commit id, use following command
   git pull origin master

2) Switch to master branch where latest code is taken
   cd master_branch or git checkout master

3) Create new Feature Branch where Feature/RMA-jirano is feature branch name
   git checkout -b Feature/RMA-jirano

4) Merge files and check status using the following command
   git status

5) Add specific / all files for commit
   git add "path of particular file"
   or
   git add . (for all files)

6) Again check status using git status command

7) Commit your changes
   git commit -m "Feature/RMA-Jirano"

8) Push your changes
   git push  origin Feature/RMA-jirano

9) Pull request

10) To Check which branch you are on
    git branch

11) To get Latest code
    git pull origin master

12)  Get data from the specific feature

     git pull origin feature/RMA-48232

No comments:

Post a Comment