Getting Started with Git

8 / 16

GitHub Project - Getting Started with Git - Making changes in a Branch

When you create a new branch it isolates your work from the point you created the branch. Now you can work on the new branch separately without affecting the original branch. This can help you to isolate your work from other developers working on the same project.

  • Make sure you are in ~/devops directory
  • Check the branch you are in using git branch command
  • If you are not on feature_a branch then checkout to feature_a branch using git checkout feature_a command
  • Make sure the first line is print("Hello World") in file
  • Append the line print("I am learning git") to the file We can use either vi or nano editor to append the line. Or you can use echo command.
  • Check the status of files in your project using git status command
Get Hint See Answer

Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...