Getting Started with Git

You are currently auditing this course.
9 / 16

GitHub Project - Getting Started with Git - Commit in the new branch

You can make commits in the new branch. This will take snapshot of the changes you made in that branch.

INSTRUCTIONS
  • 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
  • Check the working tree status using git status command
  • helloworld.py file should be shown as modified under Changes not staged for commit: when git status command is run
  • Add the helloworld.py file to staging area using git add command
  • Commit the change to branch feature_a using git commit command with the message "Added I am learning git line"
  • -m flag can be used to provide message while committing
Get Hint See Answer

Loading comments...