1.git branch
The git branch command is used to manage and view branches in your Git repository.
Image description
2.creating new branch
git branch branch-name is used to create a new branch called branch-name, but it does not switch you to that branch.

Image description
To switch between branches, use git checkout branch-name

Image description
Another way to create a new branch is Go to GitHub Repository → click on Branch → Type branch name → Create branch
Image description

Image description

3.git checkout main
Switch between branches
Image description
4.git status
What it shows:

  • Current branch
  • Changes staged for commit
  • Changes not staged (modified but not added)
  • Untracked files (new files Git doesn’t track yet) Image description 5.git push origin main It pushes your local main branch to the remote repository's main branch on origin Image description

*To check Docker version *

command :
Docker --version

Image description

To create Docker file

Image description

To build Docker image

command :
docker build -t harini0711/mca-24mcr031-ml:latest .

Image description

To List Docker Images

command :
docker images

Image description

To Push Docker Images to DockerHub

command :
docker push harini0711/mca-24mcr031-ml

Image description

Open Docker Desktop to view images and containers

Image description

Image description

  1. Run the Docker container

Image description

Verify the Docker image and running container in Docker Desktop

Image description