DevOps Interview Questions

Practice for DevOps interviews by solving TestDome questions. Our interview questions are used by more than 5,000 companies and 450,000 individual test takers.

Companies: Use Our Tests for Screening

Buy a Pack Of Candidates

Try to solve 1 DevOps interview questions below. Hints can help you find answers to questions you are having trouble with.

1. Saving a Bugfix

Git
   
Easy  

Write down a sequence of GIT commands (with no additional arguments) to download a repository, update a file, and save the changes back to the original repository. Assume that other developers didn't modify the file.

  1. Download the master repository to a local directory or repository:
    git https://joe@testdome.com/testdome.git
     
  2. Fix a bug in file test.cpp
     
  3. Mark that file test.cpp has been changed:
    git test.cpp
     
  4. Save the changes to the local repository:
    git -m 'Bug with testing is fixed'
     
  5. Send the changes to the original repository:
    git origin master